blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2 values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25 values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 10.5M | extension stringclasses 111 values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
705659633cc8de8a9289c650555d33b62bb92d4b | 3e0a6ff694ae6c364a88fcf53cf809dc5250770d | /aoj_lecture.cpp | 4a3b96ce9e00be63c72c0709c83c1e077d14bb72 | [] | no_license | dudals4824/algorithm_study | 422123634979cfe0bd1279349dc7251cd325f5ce | 306dea8c9699bee87d2c41cb654297b7d785f157 | refs/heads/master | 2021-09-07T03:09:42.495755 | 2018-02-16T13:22:25 | 2018-02-16T13:22:25 | 108,075,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,254 | cpp | aoj_lecture.cpp | #include<iostream>
#include<string>
#include<stack>
#include<algorithm>
using namespace std;
static int test_case;
static string s;
static stack<string> str[26];
static stack<string> cmp;
int main(void) {
cin >> test_case;
for (int i = 1; i <= test_case; i++) {
cin >> s;
for (int k = 0; k < s.size(); k = k + 2) {
int idx = s.substr(k, 2).at(0) % 97;
int stack_size = str[idx].size();
string temp;
if (str[idx].empty())
str[idx].push(s.substr(k, 2));
else {
temp = s.substr(k, 2);
while (str[idx].size() != stack_size + 1) {
if (str[idx].empty()){
str[idx].push(temp);
while (!cmp.empty()) {
str[idx].push(cmp.top());
cmp.pop();
}
}
else if (str[idx].top().at(1) < temp.at(1)){
str[idx].push(temp);
while (!cmp.empty()) {
str[idx].push(cmp.top());
cmp.pop();
}
}
else {
cmp.push(str[idx].top());
str[idx].pop();
}
}
}
}
for (int k = 0; k < 26; k++) {
while (!str[k].empty()) {
cmp.push(str[k].top());
str[k].pop();
}
while (!cmp.empty()) {
cout << cmp.top();
cmp.pop();
}
}
cout << endl;
}// test_case
system("pause");
return 0;
}
|
96a78d1957ae5ad45489f36685990109f5038e80 | 8cc3498e311d15c9a4394aaa341ef489b482dbe6 | /compiler/extensions/cpp/runtime/src/zserio/SqliteFinalizer.h | ab4a12bf4658c162593c47beeb3a68602bae1c11 | [
"BSD-3-Clause"
] | permissive | ndsev/zserio | 3e55c064f72e86219a6da297f116d3dbb565a9a9 | c540c4a97fee4e08bfc6669a2cec0d2b8282d8f6 | refs/heads/master | 2023-08-24T14:56:10.750155 | 2023-08-11T19:36:54 | 2023-08-11T19:36:54 | 141,550,444 | 113 | 23 | BSD-3-Clause | 2023-08-30T11:14:47 | 2018-07-19T08:44:23 | Java | UTF-8 | C++ | false | false | 509 | h | SqliteFinalizer.h | #ifndef ZSERIO_SQLITE_FINALIZER_H_INC
#define ZSERIO_SQLITE_FINALIZER_H_INC
#include "sqlite3.h"
namespace zserio
{
/**
* Helper class intended to be used as a Deleter in std::unique_ptr.
*/
struct SqliteFinalizer
{
/**
* Function call operator which finalizes the given SQLite statement.
*
* \param ptr SQLite statement.
*/
void operator()(sqlite3_stmt* ptr) const
{
sqlite3_finalize(ptr);
}
};
} // namespace zserio
#endif // ZSERIO_SQLITE_FINALIZER_H_INC
|
f6ca73076f00a14fc2ebad583a636ace49154c38 | 1fd062cd7057a26c26f28585da17c16a45e3afe9 | /src/libENUgraphics/texture.cpp | 7ac4fa86c365252a7c0dd5f85902a2401ae1fdb3 | [] | no_license | dooglz/Graphics-Coursework | 8cf23998ebfa48a246cebf413378fc964d959b2d | 401ee9f4b60b311a19e4f92ccdb74a51cbe11467 | refs/heads/master | 2021-01-10T13:05:19.963399 | 2019-11-20T17:27:05 | 2019-11-20T17:27:05 | 49,908,474 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,556 | cpp | texture.cpp | #include "stdafx.h"
#include "texture.h"
#include "util.h"
#include <FreeImage\FreeImage.h>
namespace graphics_framework {
// Creates a new texture object with the given dimensions
texture::texture(GLuint width, GLuint height) throw(...) : _width(width), _height(height) {
// Initialise texture with OpenGL
glGenTextures(1, &_id);
_type = GL_TEXTURE_2D;
// Check if error
if (CHECK_GL_ERROR) {
// Problem creating texture object
std::cerr << "ERROR - creating texture" << std::endl;
std::cerr << "Could not allocate texture with OpenGL" << std::endl;
// Set id to 0
_id = 0;
// Throw exception
throw std::runtime_error("Error creating texture");
}
}
// Creates a new texture object from the given file
texture::texture(const std::string &filename) throw(...) : texture(filename, true, true) {}
// Creates a new texture object from the given file with mipmaps and anisotropic filtering defined
texture::texture(const std::string &filename, bool mipmaps, bool anisotropic) throw(...) {
// Check if file exists
assert(check_file_exists(filename));
// Get format of image
auto format = FreeImage_GetFileType(filename.c_str());
// Load image data
auto image = FreeImage_Load(format, filename.c_str(), 0);
// Convert image to 32bit format
auto temp = image;
image = FreeImage_ConvertTo32Bits(image);
FreeImage_Unload(temp);
// Get image details
auto width = FreeImage_GetWidth(image);
auto height = FreeImage_GetHeight(image);
// Get pixel data
auto pixel_data = FreeImage_GetBits(image);
// Generate texture with OpenGL
glGenTextures(1, &_id);
glBindTexture(GL_TEXTURE_2D, _id);
// Check for any errors with OpenGL
if (CHECK_GL_ERROR) {
// Problem creating texture object
std::cerr << "ERROR - loading texture " << filename << std::endl;
std::cerr << "Could not allocate texture with OpenGL" << std::endl;
// Unload FreeImage data
FreeImage_Unload(image);
// Set id to 0
_id = 0;
// Throw exception
throw std::runtime_error("Error creating texture");
}
// Set texture parameters
if (mipmaps) {
// Turn on linear mipmaps
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
CHECK_GL_ERROR; // Not considered fatal here
} else {
// Basic scaling
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
CHECK_GL_ERROR; // Not considered fatal here
}
if (anisotropic) {
// Turn on anisotropic filtering
float max_anisotropy;
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy);
CHECK_GL_ERROR; // Non-fatal
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, max_anisotropy);
CHECK_GL_ERROR; // Non-fatal
}
// Now set texture data
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_BGRA, GL_UNSIGNED_BYTE, pixel_data);
// Check if error
if (CHECK_GL_ERROR) {
// Error loading texture data into OpenGL
std::cerr << "ERROR - loading texture " << filename << std::endl;
std::cerr << "Could not load texture data in OpenGL" << std::endl;
// Unload FreeImage data
FreeImage_Unload(image);
// Unallocate image with OpenGL
glDeleteTextures(1, &_id);
_id = 0;
// Throw exception
throw std::runtime_error("Error creating texture");
}
// Generate mipmaps
if (mipmaps)
glGenerateMipmap(GL_TEXTURE_2D);
// Set attributes
_height = height;
_width = width;
_type = GL_TEXTURE_2D;
// Unload image data
FreeImage_Unload(image);
CHECK_GL_ERROR; // Non-fatal - just info
// Log
std::clog << "LOG - texture " << filename << " loaded" << std::endl;
}
// Creates a new texture from the given colour data
texture::texture(const std::vector<glm::vec4> &data, GLuint width, GLuint height) throw(...)
: texture(data, width, height, true, true) {}
// Creates a new texture from the given colour data and mipmap and anisotropic filtering defined
texture::texture(const std::vector<glm::vec4> &data, GLuint width, GLuint height, bool mipmaps,
bool anisotropic) throw(...) {
// Check if dimensions are correct
assert(data.size() == width * height);
// Generate texture with OpenGL
glGenTextures(1, &_id);
// Check error
if (CHECK_GL_ERROR) {
// Display error
std::cerr << "ERROR - building texture" << std::endl;
std::cerr << "Could not allocate texture with OpenGL" << std::endl;
// Throw exception
throw std::runtime_error("Error creating texture");
}
// Determine type of texture by height
if (height = 1) {
// 1D texture
glBindTexture(GL_TEXTURE_1D, _id);
// Set parameters
if (mipmaps) {
// Set mipmap scaling
glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
} else {
// Normal scaling
glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
if (anisotropic) {
// Turn on anisotropic filtering
float max_anisotropy;
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy);
glTexParameterf(GL_TEXTURE_1D, GL_TEXTURE_MAX_ANISOTROPY_EXT, max_anisotropy);
}
CHECK_GL_ERROR; // Non-fatal
// Add texture data
glTexImage1D(GL_TEXTURE_1D, 0, GL_RGBA, width, 0, GL_RGBA, GL_FLOAT, &data[0]);
// Check error
if (CHECK_GL_ERROR) {
// Display error
std::cerr << "ERROR - building texture" << std::endl;
std::cerr << "Could not allocate image data with OpenGL" << std::endl;
// Delete texture
glDeleteTextures(1, &_id);
_id = 0;
// Throw exception
throw std::runtime_error("Error creating texture");
}
// Generate mipmaps
if (mipmaps)
glGenerateMipmap(GL_TEXTURE_1D);
} else {
// 2D texture
glBindTexture(GL_TEXTURE_2D, _id);
// Set parameters
if (mipmaps) {
// Set mipmap scaling
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
} else {
// Normal scaling
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
}
if (anisotropic) {
// Turn on anisotropic filtering
float max_anisotropy;
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &max_anisotropy);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, max_anisotropy);
}
CHECK_GL_ERROR; // Non-fatal
// Add texture data
glTexImage1D(GL_TEXTURE_2D, 0, GL_RGBA, width, 0, GL_RGBA, GL_FLOAT, &data[0]);
// Check error
if (CHECK_GL_ERROR) {
// Display error
std::cerr << "ERROR - building texture" << std::endl;
std::cerr << "Could not allocate image data with OpenGL" << std::endl;
// Delete texture
glDeleteTextures(1, &_id);
_id = 0;
// Throw exception
throw std::runtime_error("Error creating texture");
}
// Generate mipmaps
if (mipmaps)
glGenerateMipmap(GL_TEXTURE_2D);
}
// Set parameters
_height = height;
_width = width;
if (height == 1)
_type = GL_TEXTURE_1D;
else
_type = GL_TEXTURE_2D;
// Log
std::clog << "LOG - texture built" << std::endl;
}
} |
8a4ed0fe4fcd9f703c69148473832d86af9bc6e3 | 339250020f4619daf17837fc3e79d0729288b43e | /src/NFS3Prog.h | 7a08dc1ff4eead49f56ca2eea508caecac907ac4 | [] | no_license | Near2U0/WinNFSd | dfaeb83afca85e0abcdb6e1e6d043d651de4339d | 9f14e7c06ead85a9a7fc23a7cfde550444596e0c | refs/heads/master | 2022-02-25T00:49:15.292727 | 2019-09-30T03:22:58 | 2019-09-30T03:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,308 | h | NFS3Prog.h | #ifndef _NFS3PROG_H_
#define _NFS3PROG_H_
#include "RPCProg.h"
typedef unsigned __int64 uint64;
typedef unsigned long uint32;
typedef long int32;
typedef uint64 fileid3;
typedef uint64 cookie3;
typedef uint32 uid3;
typedef uint32 gid3;
typedef uint64 size3;
typedef uint64 offset3;
typedef uint32 mode3;
typedef uint32 count3;
typedef uint32 nfsstat3;
typedef uint32 ftype3;
typedef uint32 stable_how;
typedef uint32 time_how;
typedef uint32 createmode3;
typedef uint64 cookieverf3;
typedef uint64 createverf3;
typedef uint64 writeverf3;
class opaque
{
public:
uint32 length;
unsigned char *contents;
opaque();
opaque(uint32 len);
virtual ~opaque();
virtual void SetSize(uint32 len);
};
class nfs_fh3 : public opaque
{
public:
nfs_fh3();
~nfs_fh3();
};
class filename3 : public opaque
{
public:
char *name;
filename3();
~filename3();
void SetSize(uint32 len);
void Set(char *str);
};
typedef struct
{
uint32 specdata1;
uint32 specdata2;
} specdata3;
typedef struct
{
uint32 seconds;
uint32 nseconds;
} nfstime3;
typedef struct
{
bool check;
nfstime3 obj_ctime;
} sattrguard3;
typedef struct
{
ftype3 type;
mode3 mode;
uint32 nlink;
uid3 uid;
gid3 gid;
size3 size;
size3 used;
specdata3 rdev;
uint64 fsid;
fileid3 fileid;
nfstime3 atime;
nfstime3 mtime;
nfstime3 ctime;
} fattr3;
typedef struct
{
bool attributes_follow;
fattr3 attributes;
} post_op_attr;
typedef struct
{
size3 size;
nfstime3 mtime;
nfstime3 ctime;
} wcc_attr;
typedef struct
{
bool attributes_follow;
wcc_attr attributes;
} pre_op_attr;
typedef struct
{
pre_op_attr before;
post_op_attr after;
} wcc_data;
typedef struct
{
bool handle_follows;
nfs_fh3 handle;
} post_op_fh3;
typedef struct
{
bool set_it;
mode3 mode;
} set_mode3;
typedef struct
{
bool set_it;
uid3 uid;
} set_uid3;
typedef struct
{
bool set_it;
gid3 gid;
} set_gid3;
typedef struct
{
bool set_it;
size3 size;
} set_size3;
typedef struct
{
time_how set_it;
nfstime3 atime;
} set_atime;
typedef struct
{
time_how set_it;
nfstime3 mtime;
} set_mtime;
typedef struct
{
set_mode3 mode;
set_uid3 uid;
set_gid3 gid;
set_size3 size;
set_atime atime;
set_mtime mtime;
} sattr3;
typedef struct
{
nfs_fh3 dir;
filename3 name;
} diropargs3;
typedef struct
{
createmode3 mode;
sattr3 obj_attributes;
createverf3 verf;
} createhow3;
class CNFS3Prog : public CRPCProg
{
public:
CNFS3Prog();
~CNFS3Prog();
void SetUserID(unsigned int nUID, unsigned int nGID);
int Process(IInputStream *pInStream, IOutputStream *pOutStream, ProcessParam *pParam);
protected:
unsigned long m_nUID, m_nGID;
IInputStream *m_pInStream;
IOutputStream *m_pOutStream;
ProcessParam *m_pParam;
nfsstat3 ProcedureNULL(void);
nfsstat3 ProcedureGETATTR(void);
nfsstat3 ProcedureSETATTR(void);
nfsstat3 ProcedureLOOKUP(void);
nfsstat3 ProcedureACCESS(void);
nfsstat3 ProcedureREAD(void);
nfsstat3 ProcedureWRITE(void);
nfsstat3 ProcedureCREATE(void);
nfsstat3 ProcedureMKDIR(void);
nfsstat3 ProcedureREMOVE(void);
nfsstat3 ProcedureRMDIR(void);
nfsstat3 ProcedureRENAME(void);
nfsstat3 ProcedureREADDIR(void);
nfsstat3 ProcedureREADDIRPLUS(void);
nfsstat3 ProcedureFSINFO(void);
nfsstat3 ProcedureNOIMP(void);
void Read(bool *pBool);
void Read(uint32 *pUint32);
void Read(uint64 *pUint64);
void Read(sattr3 *pAttr);
void Read(sattrguard3 *pGuard);
void Read(diropargs3 *pDir);
void Read(opaque *pOpaque);
void Read(nfstime3 *pTime);
void Read(createhow3 *pHow);
void Write(bool *pBool);
void Write(uint32 *pUint32);
void Write(uint64 *pUint64);
void Write(fattr3 *pAttr);
void Write(opaque *pOpaque);
void Write(wcc_data *pWcc);
void Write(post_op_attr *pAttr);
void Write(pre_op_attr *pAttr);
void Write(post_op_fh3 *pObj);
void Write(nfstime3 *pTime);
void Write(specdata3 *pSpec);
void Write(wcc_attr *pAttr);
private:
int m_nResult;
char *GetPath(void);
char *GetFullPath(void);
nfsstat3 CheckFile(char *path);
bool GetFileHandle(char *path, nfs_fh3 *pObject);
bool GetFileAttributes(char *path, fattr3 *pAttr);
};
#endif
|
8a3d4d2a1ce916cf5c9905e6600edcdab97dfe2f | 39bcafc5f6b1672f31f0f6ea9c8d6047ee432950 | /extension/sqlsmith/third_party/sqlsmith/include/sqlsmith.hh | 4bcf23bc16ec9b46ef2cba20bd41459c35a7c8c7 | [
"MIT"
] | permissive | duckdb/duckdb | 315270af6b198d26eb41a20fc7a0eda04aeef294 | f89ccfe0ec01eb613af9c8ac7c264a5ef86d7c3a | refs/heads/main | 2023-09-05T08:14:21.278345 | 2023-09-05T07:28:59 | 2023-09-05T07:28:59 | 138,754,790 | 8,964 | 986 | MIT | 2023-09-14T18:42:49 | 2018-06-26T15:04:45 | C++ | UTF-8 | C++ | false | false | 552 | hh | sqlsmith.hh | /// @file
/// @brief Base class providing schema information to grammar
#ifndef SQLSMITH_HH
#define SQLSMITH_HH
#include <cstdint>
#include "duckdb.hh"
namespace duckdb_sqlsmith {
struct SQLSmithOptions {
int32_t seed = -1;
uint64_t max_queries = 0;
bool exclude_catalog = false;
bool dump_all_queries = false;
bool dump_all_graphs = false;
bool verbose_output = false;
std::string complete_log;
std::string log;
};
int32_t run_sqlsmith(duckdb::DatabaseInstance &database, SQLSmithOptions options);
} // namespace duckdb_sqlsmith
#endif
|
4a22082ba8b15b41fe339a3720531644ba95794f | 0b715a5559280f99bf11d5e0ec08750505729c15 | /engine/lib/maxsdk31/render.h | cdb7eb25cb5cd1c41fd241f79d36195fb6fab0d7 | [] | no_license | MBU-Team/OpenMBU | ee24dbd21eca66c9b269626d269e89b90fbcbcda | 4227ce343d3e1af20ec9a5548b1e65060fb208d4 | refs/heads/master | 2023-09-04T22:27:34.705946 | 2023-08-10T01:07:31 | 2023-08-10T01:07:31 | 338,863,302 | 71 | 16 | null | 2023-09-02T19:42:09 | 2021-02-14T17:41:11 | C++ | UTF-8 | C++ | false | false | 25,790 | h | render.h | /**********************************************************************
*<
FILE: render.h
DESCRIPTION:
CREATED BY: Dan Silva
HISTORY:
*> Copyright (c) 1994, All Rights Reserved.
**********************************************************************/
#ifndef __RENDER__H
#define __RENDER__H
#define FIELD_EVEN 0
#define FIELD_ODD 1
// Render Types RB: I didn't want to include render.h in MAXAPI.H...
#ifndef _REND_TYPE_DEFINED
#define _REND_TYPE_DEFINED
enum RendType {
RENDTYPE_NORMAL,
RENDTYPE_REGION,
RENDTYPE_BLOWUP,
RENDTYPE_SELECT,
RENDTYPE_REGIONCROP
};
#endif
class DefaultLight {
public:
LightState ls;
Matrix3 tm;
};
class ViewParams {
public:
Matrix3 prevAffineTM; // world space to camera space transform 2 ticks previous
Matrix3 affineTM; // world space to camera space transform
int projType; // PROJ_PERSPECTIVE or PROJ_PARALLEL
float hither,yon;
float distance; // to view plane
// Parallel projection params
float zoom; // Zoom factor
// Perspective params
float fov; // field of view
float nearRange; // for fog effects
float farRange; // for fog effects
// Generic expansion function
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
};
// Common renderer parameters
class Atmospheric;
#ifdef DESIGN_VER
// Even if rendering to another device (i.e., Printer) is supported in the renderer,
// render to a preview window instead if it is supported. This goes in the extraFlags
// field of RendParams.
#define RENDER_REDIRECT_TO_WINDOW (1L << 1)
#endif
// These parameters are passed to the renderer when the renderer is opend.
class RendParams {
public:
RendType rendType; // normal, region, blowup, selection
BOOL isNetRender; // is this a render on a network slave?
BOOL fieldRender;
int fieldOrder; // 0->even, 1-> odd
TimeValue frameDur; // duration of one frame
BOOL colorCheck;
int vidCorrectMethod; // 0->FLAG, 1->SCALE_LUMA 2->SCALE_SAT
int ntscPAL; // 0 ->NTSC, 1 ->PAL
BOOL superBlack; // impose superBlack minimum intensity?
int sbThresh; // value used for superBlack
BOOL rendHidden; // render hidden objects?
BOOL force2Side; // force two-sided rendering?
BOOL inMtlEdit; // rendering in the mtl editor?
float mtlEditTile; // if in mtl editor, scale tiling by this value
BOOL mtlEditAA; // if in mtl editor, antialias?
BOOL multiThread; // for testing only
BOOL useEnvironAlpha; // use alpha from the environment map.
BOOL dontAntialiasBG; // Don't antialias against background (for video games)
BOOL useDisplacement; // Apply displacment mapping
Texmap *envMap; // The environment map, may be NULL
Atmospheric *atmos; // The atmosphere effects, may be NULL.
Effect *effect; // The postprocessing effects, may be NULL.
TimeValue firstFrame; // The first frame that will be rendered
int scanBandHeight; // height of a scan band (default scanline renderer)
ULONG extraFlags; // for expansion
int width,height; // image width,height.
BOOL filterBG; // filter background
RendParams() {
rendType = RENDTYPE_NORMAL;
isNetRender = FALSE;
fieldRender = FALSE;
fieldOrder =0;
frameDur=0;
colorCheck=0;
vidCorrectMethod=0;
ntscPAL=0;
superBlack=0;
sbThresh=0;
rendHidden=0;
force2Side=0;
inMtlEdit=0;
mtlEditTile=0;
mtlEditAA=0;
multiThread=0;
useEnvironAlpha=0;
dontAntialiasBG=0;
useDisplacement=0;
envMap=NULL;
atmos=NULL;
effect=NULL;
firstFrame=0;
scanBandHeight=0;
extraFlags=0;
width=height=0;
filterBG = 0;
}
// Generic expansion function
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
};
// These are passed to the renderer on every frame
class FrameRendParams {
public:
Color ambient;
Color background;
Color globalLightLevel;
float frameDuration; // duration of one frame, in current frames
float relSubFrameDuration; // relative fraction of frameDuration used by subframe.
// boundaries of the region for render region or crop (device coords).
int regxmin,regxmax;
int regymin,regymax;
// parameters for render blowup.
Point2 blowupCenter;
Point2 blowupFactor;
FrameRendParams() { frameDuration = 1.0f; relSubFrameDuration = 1.0f; }
// Generic expansion function
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
};
// Since this dialog is modless and non-interactive, as the user changes
// parameters in the dialog, the renderer does not need to update it's
// state. When the user is through, they may choose 'OK' or 'Cancel'.
//
// If the user OKs the dialog, AcceptParams() will be called, at which time the
// renderer can read the parameter out of the UI and modify its state.
//
// If RejectParams() is called, typically the renderer will not have to do anything
// since it has not yet modify its state, but if for some reason it has, it
// should restore its state.
class RendParamDlg {
public:
virtual void AcceptParams()=0;
virtual void RejectParams() {}
virtual void DeleteThis()=0;
};
// Flag bits for DoMaterialBrowseDlg()
#define BROWSE_MATSONLY (1<<0)
#define BROWSE_MAPSONLY (1<<1)
#define BROWSE_INCNONE (1<<2) // Include 'None' as an option
#define BROWSE_INSTANCEONLY (1<<3) // Only allow instances, no copy
#define BROWSE_TO_MEDIT_SLOT (1<<4) // browsing to medit slot
// passed to SetPickMode. This is a callback that gets called as
// the user tries to pick objects in the scene.
class RendPickProc {
public:
// Called when the user picks something.
// return TRUE to end the pick mode.
virtual BOOL Pick(INode *node)=0;
// Return TRUE if this is an acceptable hit, FALSE otherwise.
virtual BOOL Filter(INode *node)=0;
// These are called as the mode is entered and exited
virtual void EnterMode() {}
virtual void ExitMode() {}
// Provides two cursor, 1 when over a pickable object and 1 when not.
virtual HCURSOR GetDefCursor() {return NULL;}
virtual HCURSOR GetHitCursor() {return NULL;}
// Return TRUE to allow the user to pick more than one thing.
// In this case the Pick method may be called more than once.
virtual BOOL AllowMultiSelect() {return FALSE;}
};
// This is the interface given to a renderer when it needs to display its parameters
// It is also given to atmospheric effects to display thier parameters.
class IRendParams {
public:
// The current position of the frame slider
virtual TimeValue GetTime()=0;
// Register a callback object that will get called every time the
// user changes the frame slider.
virtual void RegisterTimeChangeCallback(TimeChangeCallback *tc)=0;
virtual void UnRegisterTimeChangeCallback(TimeChangeCallback *tc)=0;
// Brings up the material browse dialog allowing the user to select a material.
// newMat will be set to TRUE if the material is new OR cloned.
// Cancel will be set to TRUE if the user cancels the dialog.
// The material returned will be NULL if the user selects 'None'
virtual MtlBase *DoMaterialBrowseDlg(HWND hParent,DWORD flags,BOOL &newMat,BOOL &cancel)=0;
// Adds rollup pages to the render params dialog. Returns the window
// handle of the dialog that makes up the page.
virtual HWND AddRollupPage(HINSTANCE hInst, TCHAR *dlgTemplate,
DLGPROC dlgProc, TCHAR *title, LPARAM param=0,DWORD flags=0)=0;
// Removes a rollup page and destroys it.
virtual void DeleteRollupPage(HWND hRollup)=0;
// When the user mouses down in dead area, the plug-in should pass
// mouse messages to this function which will pass them on to the rollup.
virtual void RollupMouseMessage(HWND hDlg, UINT message,
WPARAM wParam, LPARAM lParam)=0;
// This will set the command mode to a standard pick mode.
// The callback implements hit testing and a method that is
// called when the user actually picks an item.
virtual void SetPickMode(RendPickProc *proc)=0;
// If a plug-in is finished editing its parameters it should not
// leave the user in a pick mode. This will flush out any pick modes
// in the command stack.
virtual void EndPickMode()=0;
// When a plugin has a Texmap, clicking on the button
// associated with that map should cause this routine
// to be called.
virtual void PutMtlToMtlEditor(MtlBase *mb)=0;
// This is for use only by the scanline renderer.
virtual float GetMaxPixelSize() = 0;
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
// JBW 12/1/98: get interface to rollup window interface
virtual IRollupWindow* GetIRollup()=0;
};
//----------------------------------------------------------------
// Render Instance flags
#define INST_HIDE (1<<0) // instance is hidden
#define INST_CLIP (1<<1) // clip instance: ray tracers should skip it
#define INST_BLUR (1<<2) // secondary motion blur instance
#define INST_RCV_SHADOWS (1<<3) // instance receives shadows
#define INST_TM_NEGPARITY (1<<4) // mesh is inside-out: need to reverse normals on-the-fly
class RenderInstance {
public:
ULONG flags;
Mtl *mtl; // from inode, for convenience
float wireSize; // Mtl wireframe size
Mesh *mesh; // result of GetRenderMesh call
float vis; // Object visibility
int nodeID; // unique within scene during render- corresponds to ShadeContext::NodeID()
int objMotBlurFrame; // Object motion blur sub frame (= NO_MOTBLUR for non-blurred objects)
int objBlurID; // Blur instances for an object share a objBlurID value.
Matrix3 objToWorld; // transforms object coords to world coords
Matrix3 objToCam; // transforms object coords to cam coords
Matrix3 normalObjToCam; // for transforming surface normals from obj to camera space
Matrix3 camToObj; // transforms camera coords to object coords
Box3 obBox; // Object space extents
Point3 center; // Bounding sphere center (camera coords)
float radsq; // square of bounding sphere's radius
void SetFlag(ULONG f, BOOL b) { if (b) flags |= f; else flags &= ~f; }
void SetFlag(ULONG f) { flags |= f; }
void ClearFlag(ULONG f) { flags &= ~f; }
BOOL TestFlag(ULONG f) { return flags&f?1:0; }
BOOL Hidden() { return TestFlag(INST_HIDE); }
BOOL IsClip() { return TestFlag(INST_CLIP); }
virtual RenderInstance *Next()=0; // next in list
virtual Interval MeshValidity()=0;
virtual int NumLights()=0;
virtual LightDesc *Light(int n)=0;
virtual BOOL CastsShadowsFrom(const ObjLightDesc& lt)=0; // is lt shadowed by this instance?
virtual INode *GetINode()=0; // get INode for instance
virtual Object *GetEvalObject()=0; // evaluated object for instance
virtual ULONG MtlRequirements(int mtlNum)=0; // node's mtl requirements
virtual void MtlMapsRequired (BitArray & mapreq) { mapreq.SetSize(2); mapreq.Clear(0); mapreq.Set(1); }
virtual Point3 GetFaceNormal(int faceNum)=0; // geometric normal in camera coords
virtual Point3 GetFaceVertNormal(int faceNum, int vertNum)=0; // camera coords
virtual void GetFaceVertNormals(int faceNum, Point3 n[3])=0; // camera coords
virtual Point3 GetCamVert(int vertnum)=0; // coord for vertex in camera coords
virtual void GetObjVerts(int fnum, Point3 obp[3])=0; // vertices of face in object coords
virtual void GetCamVerts(int fnum, Point3 cp[3])=0; // vertices of face in camera(view) coords
// Generic expansion function
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
};
//----------------------------------------------------------------
// Values returned from Progress()
#define RENDPROG_CONTINUE 1
#define RENDPROG_ABORT 0
// Values passed to SetCurField()
#define FIELD_FIRST 0
#define FIELD_SECOND 1
#define FIELD_NONE -1
// A callback passed in to the renderer
class RendProgressCallback {
public:
virtual void SetTitle(const TCHAR *title)=0;
virtual int Progress(int done, int total)=0;
virtual void SetCurField(int which) {}
virtual void SetSceneStats(int nlights, int nrayTraced, int nshadowed, int nobj, int nfaces) {}
};
// RB: my version of a renderer...
class Renderer : public ReferenceTarget {
public:
// Reference/Animatable methods.
// In addition, the renderer would need to implement ClassID() and DeleteThis()
// Since a renderer will probably not itself have references, this implementation should do
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget,
PartID& partID, RefMessage message) {return REF_SUCCEED;}
SClass_ID SuperClassID() {return RENDERER_CLASS_ID;}
virtual int Open(
INode *scene, // root node of scene to render
INode *vnode, // view node (camera or light), or NULL
ViewParams *viewPar,// view params for rendering ortho or user viewport
RendParams &rp, // common renderer parameters
HWND hwnd, // owner window, for messages
DefaultLight* defaultLights=NULL, // Array of default lights if none in scene
int numDefLights=0 // number of lights in defaultLights array
)=0;
//
// Render a frame -- will use camera or view from open
//
virtual int Render(
TimeValue t, // frame to render.
Bitmap *tobm, // optional target bitmap
FrameRendParams &frp, // Time dependent parameters
HWND hwnd, // owner window
RendProgressCallback *prog=NULL,
ViewParams *viewPar=NULL // override viewPar given on Open.
)=0;
virtual void Close( HWND hwnd )=0;
// Adds rollup page(s) to renderer configure dialog
// If prog==TRUE then the rollup page should just display the parameters
// so the user has them for reference while rendering, they should not be editable.
virtual RendParamDlg *CreateParamDialog(IRendParams *ir,BOOL prog=FALSE)=0;
virtual void ResetParams()=0;
virtual int GetAAFilterSupport(){ return 0; } // point sample, no reconstruction filter
};
class ShadowBuffer;
class ShadowQuadTree;
class RendContext {
public:
virtual int Progress(int done, int total) const { return 1; }
virtual Color GlobalLightLevel() const = 0;
};
struct SubRendParams {
RendType rendType;
BOOL fieldRender;
BOOL evenLines; // when field rendering
BOOL doingMirror;
BOOL doEnvMap; // do environment maps?
int devWidth, devHeight;
float devAspect;
int xorg, yorg; // location on screen of upper left corner of output bitmap
int xmin,xmax,ymin,ymax; // area of screen being rendered
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
};
// flags passed to RenderMapsContext::Render()
#define RENDMAP_SHOW_NODE 1 // *Dont* exclude this node from the render.
// A pointer to this data structure is passed to MtlBase::BuildMaps();
// when rendering reflection and refraction maps.
class RenderMapsContext {
public:
virtual INode *GetNode()=0;
virtual int NodeRenderID()=0;
virtual void GetCurrentViewParams(ViewParams &vp)=0;
virtual void GetSubRendParams(SubRendParams &srp)=0;
virtual int SubMtlIndex()=0;
virtual void SetSubMtlIndex(int mindex)=0;
virtual void FindMtlPlane(float pl[4])=0;
virtual void FindMtlScreenBox(Rect &sbox, Matrix3* viewTM=NULL, int mtlIndex=-1)=0;
virtual Box3 CameraSpaceBoundingBox()=0;
virtual Box3 ObjectSpaceBoundingBox()=0;
virtual Matrix3 ObjectToWorldTM()=0;
virtual RenderGlobalContext *GetGlobalContext() { return NULL; }
// ClipPlanes is a pointer to an array of Point4's, each of which
// represents a clip plane. nClip Planes is the number of planes (up to 6);
// The planes are in View space.
virtual int Render(Bitmap *bm, ViewParams &vp, SubRendParams &srp, Point4 *clipPlanes=NULL, int nClipPlanes=0)=0;
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
};
#define DONT_CLIP 1.0E38f
class SFXParamDlg {
public:
virtual Class_ID ClassID()=0;
virtual void SetThing(ReferenceTarget *m)=0;
virtual ReferenceTarget* GetThing()=0;
virtual void SetTime(TimeValue t) { }
virtual void DeleteThis()=0;
virtual int Execute(int cmd, ULONG arg1=0, ULONG arg2=0, ULONG arg3=0) { return 0; }
virtual void InvalidateUI() { }
};
// Special Effect: Base class for Atmospherics, Effects, shaders
class SpecialFX: public ReferenceTarget {
public:
TSTR name;
// This name will appear in the track view and the list of current atmospheric effects.
virtual TSTR GetName() {return _T("");}
// Is effect active
virtual BOOL Active(TimeValue t) {
return !TestAFlag(A_ATMOS_DISABLED);
}
// Called when the render steps to a new frame
virtual void Update(TimeValue t, Interval& valid) {}
// Saves and loads name. These should be called at the start of
// a plug-in's save and load methods.
CoreExport IOResult Save(ISave *isave);
CoreExport IOResult Load(ILoad *iload);
// If an atmospheric has references to gizmos or other objects in the scene it can optionally
// provide access to the object list.
virtual int NumGizmos() {return 0;}
virtual INode *GetGizmo(int i) {return NULL;}
virtual void DeleteGizmo(int i) {}
virtual void AppendGizmo(INode *node) {}
virtual BOOL OKGizmo(INode *node) { return FALSE; } // approve a node for possible use as gizmo
virtual void EditGizmo(INode *node) {} // selects this gizmo & displays params for it if any
virtual void InsertGizmo(int i, INode *node) { assert(0); } // must be defined to use DeleteGizmoRestore
// Animatable overides...
CoreExport SvGraphNodeReference SvTraverseAnimGraph(IGraphObjectManager *gom, Animatable *owner, int id, DWORD flags);
};
// Classes used for implementing UNDO in Atmosphere and Effects classes.
class AppendGizmoRestore: public RestoreObj {
public:
SpecialFX *fx;
INode *node;
AppendGizmoRestore(SpecialFX *f, INode *n) { fx= f; node = n; }
void Redo() { fx->AppendGizmo(node); }
void Restore(int isUndo) { fx->DeleteGizmo(fx->NumGizmos()-1); }
TSTR Description() { return TSTR("AppendGizmoRestore"); }
};
class DeleteGizmoRestore: public RestoreObj {
public:
SpecialFX *fx;
INode *node;
int num;
DeleteGizmoRestore(SpecialFX *a, INode *n, int i) { fx = a; node = n; num = i; }
void Redo() { fx->DeleteGizmo(num); }
void Restore(int isUndo) { fx->InsertGizmo(num,node); }
TSTR Description() { return TSTR("DeleteGizmoRestore"); }
};
//--- Atmospheric plug-in interfaces -----------------------------------------------
// Atmospheric plug-in base class
// Returned by an Atmospheric when it is asked to put up its rollup page.
typedef SFXParamDlg AtmosParamDlg;
class Atmospheric : public SpecialFX {
public:
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget,
PartID& partID, RefMessage message) {return REF_SUCCEED;}
SClass_ID SuperClassID() {return ATMOSPHERIC_CLASS_ID;}
// Saves and loads name. These should be called at the start of
// a plug-in's save and load methods.
IOResult Save(ISave *isave) { return SpecialFX::Save(isave); }
IOResult Load(ILoad *iload) { return SpecialFX::Load(iload); }
// Put up a modal dialog that lets the user edit the plug-ins parameters.
virtual AtmosParamDlg *CreateParamDialog(IRendParams *ip) {return NULL;}
// Implement this if you are using the ParamMap2 AUTO_UI system and the
// atmosphere has secondary dialogs that don't have the effect as their 'thing'.
// Called once for each secondary dialog for you to install the correct thing.
// Return TRUE if you process the dialog, false otherwise.
virtual BOOL SetDlgThing(AtmosParamDlg* dlg) { return FALSE; }
// This is the function that is called to apply the effect.
virtual void Shade(ShadeContext& sc,const Point3& p0,const Point3& p1,Color& color, Color& trans, BOOL isBG=FALSE)=0;
};
#define SFXBASE_CHUNK 0x39bf
#define SFXNAME_CHUNK 0x0100
// Chunk IDs saved by base class
#define ATMOSHPERICBASE_CHUNK SFXBASE_CHUNK
#define ATMOSHPERICNAME_CHUNK SFXNAME_CHUNK
//--------------------------------------------------------------------------
// Interface into the default scanline renderer, Class_ID(SREND_CLASS_ID,0)
//---------------------------------------------------------------------------
class FilterKernel;
class IScanRenderer: public Renderer {
public:
virtual void SetAntialias(BOOL b) = 0;
virtual BOOL GetAntialias() = 0;
virtual void SetFilter(BOOL b) = 0;
virtual BOOL GetFilter() = 0;
virtual void SetShadows(BOOL b) = 0;
virtual BOOL GetShadows() = 0;
virtual void SetMapping(BOOL b) = 0;
virtual BOOL GetMapping() = 0;
virtual void SetForceWire(BOOL b) = 0;
virtual BOOL GetForceWire() = 0;
virtual void SetAutoReflect(BOOL b)=0;
virtual BOOL GetAutoReflect()=0;
virtual void SetObjMotBlur(BOOL b) = 0;
virtual BOOL GetObjMotBlur() = 0;
virtual void SetVelMotBlur(BOOL b) = 0;
virtual BOOL GetVelMotBlur() = 0;
// Obsolete, use setfiltersz. pixel sz = 1.0 for all filtering
virtual void SetPixelSize(float size) = 0;
virtual void SetAutoReflLevels(int n) = 0;
virtual void SetWireThickness(float t) = 0;
virtual void SetObjBlurDuration(float dur) = 0;
virtual void SetVelBlurDuration(float dur) = 0;
virtual void SetNBlurFrames(int n) = 0;
virtual void SetNBlurSamples(int n) = 0;
virtual void SetMaxRayDepth(int n) = 0;
virtual int GetMaxRayDepth() { return 7; }
virtual void SetAntiAliasFilter( FilterKernel * pKernel ) = 0;
virtual FilterKernel * GetAntiAliasFilter() = 0;
virtual void SetAntiAliasFilterSz(float size) = 0;
virtual float GetAntiAliasFilterSz() = 0;
virtual void SetPixelSamplerEnable( BOOL on ) = 0;
virtual BOOL GetPixelSamplerEnable() = 0;
};
// Render Post effects;
// Returned by an effect when it is asked to put up its rollup page.
typedef SFXParamDlg EffectParamDlg;
class CheckAbortCallback {
public:
virtual BOOL Check()=0; // returns TRUE if user has done something to cause an abort.
virtual BOOL Progress(int done, int total)=0;
virtual void SetTitle(const TCHAR *title)=0;
};
class Effect : public SpecialFX {
public:
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget,
PartID& partID, RefMessage message) {return REF_SUCCEED;}
SClass_ID SuperClassID() {return RENDER_EFFECT_CLASS_ID;}
// Saves and loads name. These should be called at the start of
// a plug-in's save and load methods.
IOResult Save(ISave *isave) { return SpecialFX::Save(isave); }
IOResult Load(ILoad *iload) { return SpecialFX::Load(iload); }
// Put up a dialog that lets the user edit the plug-ins parameters.
virtual EffectParamDlg *CreateParamDialog(IRendParams *ip) {return NULL;}
// Implement this if you are using the ParamMap2 AUTO_UI system and the
// effect has secondary dialogs that don't have the effect as their 'thing'.
// Called once for each secondary dialog for you to install the correct thing.
// Return TRUE if you process the dialog, false otherwise.
virtual BOOL SetDlgThing(EffectParamDlg* dlg) { return FALSE; }
// What G-buffer channels does this Effect require in the output bitmap?
virtual DWORD GBufferChannelsRequired(TimeValue t) { return 0; /*BMM_CHAN_NONE;*/ }
// This is the function that is called to apply the effect.
virtual void Apply(TimeValue t, Bitmap *bm, RenderGlobalContext *gc, CheckAbortCallback *cb )=0;
};
// Chunk IDs saved by base class
#define EFFECTBASE_CHUNK SFXBASE_CHUNK
#define EFFECTNAME_CHUNK SFXNAME_CHUNK
////////////////////////////////////////////////////////////////////////
//
// Filter Kernel Plug-ins;
//
#define AREA_KERNEL_CLASS_ID 0x77912301
#define DEFAULT_KERNEL_CLASS_ID AREA_KERNEL_CLASS_ID
// Returned by a kernel when it is asked to put up its rollup page.
typedef SFXParamDlg FilterKernelParamDlg;
class FilterKernel : public SpecialFX {
public:
RefResult NotifyRefChanged( Interval changeInt,
RefTargetHandle hTarget,
PartID& partID,
RefMessage message ) { return REF_SUCCEED; }
SClass_ID SuperClassID() { return FILTER_KERNEL_CLASS_ID; }
// Saves and loads name. These should be called at the start of
// a plug-in's save and load methods.
IOResult Save(ISave *isave) { return SpecialFX::Save(isave); }
IOResult Load(ILoad *iload) { return SpecialFX::Load(iload); }
// Put up a dialog that lets the user edit the plug-ins parameters.
virtual FilterKernelParamDlg *CreateParamDialog( IRendParams *ip ) {return NULL;}
// filter kernel section
// This is the function that is called to sample kernel values.
virtual double KernelFn( double x, double y = 0.0 )=0;
// integer number of pixels from center to filter 0 edge, must not truncate filter
// x dimension for 2D filters
virtual long GetKernelSupport()=0;
// for 2d returns y support, for 1d returns 0
virtual long GetKernelSupportY()=0;
virtual bool Is2DKernel()=0;
virtual bool IsVariableSz()=0;
// 1-D filters ignore the y parameter
virtual void SetKernelSz( double x, double y = 0.0 )=0;
virtual void GetKernelSz( double& x, double& y )=0;
// returning true will disable the built-in normalizer
virtual bool IsNormalized(){ return FALSE; }
// this is for possible future optimizations, not sure its needed
virtual bool HasNegativeLobes()=0;
virtual TCHAR* GetDefaultComment()=0;
// there are 2 optional 0.0 ...1.0 parameters, for whatever
virtual long GetNFilterParams(){ return 0; }
virtual TCHAR * GetFilterParamName( long nParam ){ return _T(""); }
virtual double GetFilterParamMax( long nParam ){ return 1.0; }
virtual double GetFilterParam( long nParam ){ return 0.0; }
virtual void SetFilterParam( long nParam, double val ){};
};
// Chunk IDs saved by base class
#define FILTERKERNELBASE_CHUNK 0x39bf
#define FILTERKERNELNAME_CHUNK 0x0100
#endif
|
157df195d37f3c9226ec28e98e0541d87827530b | 5764fe956d24153464d7cee09513cdbe62044220 | /dominios.h | f7c01239136f5fe668383c0986d0e9f0ae2d4ebb | [] | no_license | Abbadoness/Trabalho-2-TP1 | 582363b70d87a920bd9db1740331b3fbd16bd0d2 | cd643a75e8d95b77e40a80a03c60679894b53112 | refs/heads/master | 2023-08-16T10:25:40.225680 | 2021-10-13T18:51:57 | 2021-10-13T18:51:57 | 412,606,282 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 11,800 | h | dominios.h | #ifndef DOMINIOS_H_INCLUDED
#define DOMINIOS_H_INCLUDED
#include <stdexcept>
#include <string>
using namespace std;
///
/// Padrao para representacao da capacidade.
///
/// Regras de formato:
///
/// -Capacidades validas: 100, 200, 300, 400, 500.
///
class Capacidade {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Capacidade.
///
///@return
void setValor(string);
///Metodo retorna string armazenada.
///
///@return Capacidade.
string getValor() const;
};
inline string Capacidade::getValor() const{//Método inline.
return valor;
}
///
///Padrao para representacao de cargo.
///
///Regras de formato:
///
/// - Cargos validos: ator, cenógrafo, figurinista, maquiador, sonoplasta, iluminador.
///
class Cargo {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Cargo.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna cargo em formato de string.
///
///@return Cargo.
string getValor() const; // Método para recuperar valor.
};
inline string Cargo::getValor() const{
return valor;
}
///
///Padrao para representacao de classificacao.
///
///Regras de formato:
///
/// - Classificacoes validas: livre, 10, 12, 14, 16, 18.
///
class Classificacao {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Classificacao.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna classificacao em formato de string.
///
///@return Classificacao.
///
string getValor() const; // Método para recuperar valor.
};
inline string Classificacao::getValor() const{
return valor;
}
///
///Padrao para representacao de codigo.
///
///Regras de formato:
///
/// - Formato LLDDDD
/// Cada L eh letra maiuscula(A-Z).
/// Cada D eh digito(0-9).
///
class Codigo {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Codigo.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna codigo em formato de string.
///
///@return Codigo.
///
string getValor() const; // Método para recuperar valor.
};
inline string Codigo::getValor() const{
return valor;
}
///
///Padrao representacao de data.
///
///Regras de formato:
///
/// - Fomato DD/MM/AAAA
/// DD entre 01 e 31.
/// MM entre 01 e 12.
/// AAAA entre 2000 e 9999.
/// Obs:Data considera a ocorrencia de anos bissextos.
///
class Data {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Data.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna data em formato de string.
///
///@return Data.
///
string getValor() const; // Método para recuperar valor.
};
inline string Data::getValor() const{
return valor;
}
///
///Padrao representacao de email.
///
///Regras de formato:
///
/// - Formato <i>parte-local</i>@<i>dominio</i>
/// <i>parte-local</i> é composta por ate 64 caracteres.
/// <i>dominio</i> é composto por ate 255 caracteres.
/// Caractere pode ser letra maiuscula (A-Z) ou letra minuscula(a-z).
/// Caractere pode ser digito (0-9).
/// Caractere pode ser !#$%&'*+-/=?^_`{|}~.
/// Caractere pode ser ponto (.) desde que nao seja o primeiro ou ultimo caractere de <i>parte-local</i> ou <i>dominio</i> e que nao ocorra em sequencia.
///
class Email {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Email.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna email em formato de string.
///
///@return Email.
///
string getValor() const; // Método para recuperar valor.
};
inline string Email::getValor() const{
return valor;
}
///
///Padrao representacao de horario.
///
///Regras de formato:
///
/// -Formato HH:MM
/// Em HH tem-se indicacao de horario : 00 a 23.
/// EM MM tem-se indicacao de minuto : 00, 15, 30, 45
///
class Horario {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Horario.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna horario em formato de string.
///
///@return Horario.
///
string getValor() const; // Método para recuperar valor.
};
inline string Horario::getValor() const{
return valor;
}
///
///Padrao representacao de matricula.
///
///Regras de formato:
///
/// -Formato XXXXX
/// Cada X eh digito (0-9)
/// Nao podem existir digitos duplicados.
///
class Matricula {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Matricula.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna matricula em formato de string.
///
///@return Matricula.
///
string getValor() const; // Método para recuperar valor.
};
inline string Matricula::getValor() const{
return valor;
}
///
///Padrao representacao de nome.
///
///Regras de formato:
///
/// De 5 a 20 caracteres.
/// Cada caracter eh letra (A-Z ou a-z),ponto (.) ou espaço em branco.
/// Ponto (.) é precedido por letra.
/// Nao ha espacos em branco em sequencia.
/// Primeira letra de cada termo eh letra maiuscula (A-Z).
///
class Nome {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Nome.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna nome em formato de string.
///
///@return Nome.
///
string getValor() const; // Método para recuperar valor.
};
inline string Nome::getValor() const{
return valor;
}
///
///Padrao representacao de senha.
///
///Regras de formato:
///
/// -Formato XXXXXXXX
/// Cada caractere X eh letra (A-Z ou a-z),digito (0-9) ou caractere especial.
/// Sao possiveis caracteres especiais !'@'#$%&?
/// Nao existe caracter repetido.
/// Existe pelo menos uma letra (maiuscula ou minuscula), um digito e um caractere especial.
///
class Senha {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Senha.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna senha em formato de string.
///
///@return Senha.
///
string getValor() const; // Método para recuperar valor.
};
inline string Senha::getValor() const{
return valor;
}
///
///Padrao representacao de telefone.
///
///Regras de formato:
///
/// -Formato (XX)-YYYYYYYYY
/// XX eh um dos seguintes codigos 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 24, 27, 28, 32, 33, 34, 35, 37, 38, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 53, 54, 55, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 73, 74, 75, 77, 79, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 92, 94, 95, 96, 97, 98, 99.
/// Cada Y eh digito (0-9).
/// Nao existe numero de telefone 000000000.
///
class Telefone {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Telefone.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna telefone em formato de string.
///
///@return Telefone.
///
string getValor() const; // Método para recuperar valor.
};
inline string Telefone::getValor() const{
return valor;
}
///
///Padrao representacao de tipo.
///
///Regras de formato:
///
/// -Tipo validos: auto, comédia, drama, farsa, melodrama, monólogo, musical, ópera, revista.
///
class Tipo {
private:
string valor; // Atributo para armazenar valor.
void validar(string); // Método para validar valor.
public:
///Armazena string caso seja valida.
///
///Lanca excecão caso valor seja invalido.
///
///@param valor Tipo.
///
///@throw invalid_argument
void setValor(string); // Método para atribuir valor.
///
///Retorna tipo em formato de string.
///
///@return Tipo.
///
string getValor() const; // Método para recuperar valor.
};
inline string Tipo::getValor() const{
return valor;
}
#endif // DOMINIOS_H_INCLUDED
|
d36581e7779aaa0fed2f3e76209befd91477764d | 4b60d316314a66bb1c13964719f842ef5b205d6e | /test/PluggableSingletonTest.cpp | 8cd303b95547e4251bed2669a0de4510706bc951 | [] | no_license | dalippa/libcisnr | 326afa8af171794b81b65140a920d8e3f1abb971 | d8a2cb1365baca29fab8f803a15e74df9a1ad7a0 | refs/heads/master | 2021-01-10T21:26:08.541864 | 2010-08-19T18:24:24 | 2010-08-19T18:24:24 | 32,659,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | PluggableSingletonTest.cpp | #include "PluggableSingletonTest.h"
#include "PluggableSingleton.h"
#include "SingletonClasses.h"
using CppUnit::TestCase;
MakePluggableSingleton(FromHeader);
MakePluggableSingleton(FromCpp);
PluggableSingletonTest::PluggableSingletonTest() :
TestCase(typeid(this).name())
{
}
void PluggableSingletonTest::setUp()
{
}
void PluggableSingletonTest::tearDown()
{
}
void PluggableSingletonTest::testSingleton()
{
const FromHeader& FH(PluggableSingleton<FromHeader, false>::getInstance());
int value = FH.getValue();
CPPUNIT_ASSERT_EQUAL(value, 10);
value = PluggableSingleton<FromCpp, true>::getInstance().getValue();
CPPUNIT_ASSERT_EQUAL(value, 20);
}
CppUnit::Test* PluggableSingletonTest::suite()
{
std::auto_ptr<CppUnit::TestSuite> ts(new CppUnit::TestSuite());
ts->addTest(new CppUnit::TestCaller<PluggableSingletonTest>("testMult", &PluggableSingletonTest::testSingleton));
return ts.release();
}
|
7497982fc9799dcecfd6f7d8d57614d5f483a924 | 62dd17dc7b16a655c92c1210e9e48a5dd96701be | /Workstudyplay_Flower/Workstudyplay_Flower.ino | 80a22887ac62102ebe01bb180bde1d3410c3adff | [] | no_license | workstudyplay/thing | a5bea37d04c9e058e5456f73deb2247f67077d74 | 6d2a7195baa9b6494eddef32cc795c841a598ffb | refs/heads/master | 2023-03-02T02:40:06.156119 | 2021-02-08T04:39:15 | 2021-02-08T04:39:15 | 294,025,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,897 | ino | Workstudyplay_Flower.ino | #include <ArduinoJson.h>
#include "FS.h"
#include <LittleFS.h>
#include <Wire.h>
#include "I2CScanner.h"
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#if defined(ESP8266)
// START ESP 8266 HEADERS - - - - - - - - - - - - - - - -
#include <ESP8266mDNS.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ArduinoOTA.h>
const char* ssid = "gbsx";
const char* password = "OrlandoNakazawa!";
ESP8266WebServer server(80);
#elif defined(ESP32)
// START ESP 32 HEADERS - - - - - - - - - - - - - - - -
//#include <WiFiClient.h>
//#include <ESP8266WebServer.h>
char* ssid = "<Your SSID>";
char* password = "<Your WiFi Password>!";
WiFiServer server(80);
//TwoWire leftBus = TwoWire(0);
////TwoWire rightBus = TwoWire(1);
//
//
//void scanI2C_1() {
// Serial.println("Scanning I2C Addresses Channel 1");
// uint8_t cnt = 0;
// for (uint8_t i = 0; i < 128; i++) {
// leftBus.beginTransmission(i);
// uint8_t ec = leftBus.endTransmission(true);
// if (ec == 0) {
// if (i < 16)Serial.print('0');
// Serial.print(i, HEX);
// cnt++;
// }
// else Serial.print("..");
// Serial.print(' ');
// if ((i & 0x0f) == 0x0f)Serial.println();
// }
// Serial.print("Scan Completed, ");
// Serial.print(cnt);
// Serial.println(" I2C Devices found.");
//}
#else
#endif
#include <Adafruit_PWMServoDriver.h>
// called this way, it uses the default address 0x40
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver();
#define SERVOMIN 140 // This is the 'minimum' pulse length count (out of 4096)
#define SERVOMAX 450 // This is the 'maximum' pulse length count (out of 4096)
#define USMIN 600 // This is the rounded 'minimum' microsecond length based on the minimum pulse of 150
#define USMAX 2400 // This is the rounded 'maximum' microsecond length based on the maximum pulse of 600
#define SERVO_FREQ 50 // Analog servos run at ~50 Hz updates
I2CScanner scanner;
#include <WiFiClient.h>
#include <WiFiUdp.h>
uint64_t chipid;
String _hostname = "boop";
bool loadConfig() {
File configFile = LittleFS.open("/config.json", "r");
if (!configFile) {
Serial.println("Failed to open config file");
return false;
}
size_t size = configFile.size();
if (size > 1024) {
Serial.println("Config file size is too large");
return false;
}
// Allocate a buffer to store contents of the file.
std::unique_ptr<char[]> buf(new char[size]);
// We don't use String here because ArduinoJson library requires the input
// buffer to be mutable. If you don't use ArduinoJson, you may as well
// use configFile.readString instead.
configFile.readBytes(buf.get(), size);
StaticJsonDocument<200> doc;
auto error = deserializeJson(doc, buf.get());
if (error) {
Serial.println("Failed to parse config file");
return false;
}
const char* configVersion = doc["configVersion"];
const char* hostName = doc["hostname"];
Serial.print("Loaded configVersion: ");
Serial.println(configVersion);
Serial.print("Loaded hostname: ");
Serial.println(hostName);
_hostname = hostName;
return true;
}
#define _TASK_SLEEP_ON_IDLE_RUN
#define _TASK_STATUS_REQUEST
#include <TaskScheduler.h>
Scheduler ticker;
int _now = 0;
unsigned long _tickCount = 0;
unsigned long _frameCount = 0;
int FPS = 10;
#define PROGRAM_BUFFER_LENGTH 1200
struct sequence_frame_t {
bool has_data;
int sequence_index;
int ch1;
int ch2;
int ch3;
int ch4;
} sequence_steps[PROGRAM_BUFFER_LENGTH];
sequence_frame_t current_frame;
bool tickerRunning = false;
bool ch1_increment = true;
void TickCallback() {
if (tickerRunning == false ) {
return;
}
_frameCount++;
// Serial.println("Frame: " + String(_frameCount) + "/" + String(FPS) + "" );
if ( _frameCount == 0 || _frameCount % FPS == 0 ) {
// if (current_frame.ch1 >= 255) {
// ch1_increment = false;
// } else if (current_frame.ch1 <= 0 ) {
// ch1_increment = true;
// }
//
// if (ch1_increment) {
// current_frame.ch1++;
// } else {
// current_frame.ch1--;
// }
Serial.printf("frame ticker: %03d %03d %03d %03d \n", current_frame.ch1, current_frame.ch2, current_frame.ch3, current_frame.ch4 );
_frameCount = 0;
_tickCount++;
}
//programFrameCallback();
pwm.setPWM(0, 0, current_frame.ch1);
pwm.setPWM(1, 0, current_frame.ch2);
pwm.setPWM(2, 0, current_frame.ch3);
_now++;
}
Task tTicker( 1000 / FPS, TASK_FOREVER, &TickCallback, &ticker, true);
void startTickers() {
tickerRunning = true;
Serial.println("Starting tickers");
current_frame.ch1 = 0;
current_frame.ch2 = 0;
current_frame.ch3 = 0;
current_frame.ch4 = 0;
}
int dimmer_program_length = 0;
int dimmer_program_position = 0;
#define NO_VALUE -999
void clearDimmerProgram() {
dimmer_program_length = 0;
dimmer_program_position = 0;
return;
for ( int n = 0; n < PROGRAM_BUFFER_LENGTH; n++) {
sequence_frame_t frame = sequence_steps[n];
frame.has_data = false;
frame.sequence_index = NULL;
frame.ch1 = NO_VALUE;
frame.ch2 = NO_VALUE;
frame.ch3 = NO_VALUE;
frame.ch4 = NO_VALUE;
}
}
float calculateSlope(int x1, int y1, int x2, int y2) {
// rise over run
float s = ((float)y1 - (float)y2) / ((float)x1 - (float)x2);
//Serial.println( String(s) + " = (" + String(y1) + "-"+ String(y2) + ") / (" + String(x1) + "-"+ String(x2) + ")" );
return s;
}
void addProgramSequence( int channel, int start_value, int end_value, int time_in_ms ) {
// since we know the fps, we can calculate the values as a function of time
int totalFrames = time_in_ms / FPS;
Serial.printf("Generated %d frames", totalFrames);
// here we need to calculate the value as a function of start_value end_value n
float slope = calculateSlope(0, start_value, totalFrames, end_value);
for ( int x = 0; x < totalFrames; x++) {
float float_value = ( (float)slope * (float)x) + (float)start_value;
//Serial.println( "Float_value= " + String(float_value) );
int value = int( float_value );
//Serial.println( "x=" + String(x) + ", y="+String( value) );
sequence_frame_t frame;
frame.has_data = true;
frame.sequence_index = true;
frame.ch1 = NO_VALUE;
frame.ch2 = NO_VALUE;
frame.ch3 = NO_VALUE;
frame.ch4 = NO_VALUE;
if ( channel == 1 || channel == 0) frame.ch1 = value;
if ( channel == 2 || channel == 0) frame.ch2 = value;
if ( channel == 3 || channel == 0) frame.ch3 = value;
if ( channel == 4 || channel == 0) frame.ch4 = value;
// add the frame to the sequences
sequence_steps[dimmer_program_length] = frame;
dimmer_program_length++;
}
Serial.println("Adding " + String(totalFrames) + " frames to program, Program length is now: " + String( dimmer_program_length ) );
}
void setupServos() {
Serial.println("Setting up servo controller");
pwm.begin();
pwm.setOscillatorFrequency(27000000);
pwm.setPWMFreq(SERVO_FREQ); // Analog servos run at ~50 Hz updates
delay(10);
}
// You can use this function if you'd like to set the pulse length in seconds
// e.g. setServoPulse(0, 0.001) is a ~1 millisecond pulse width. It's not precise!
void setServoPulse(uint8_t n, double pulse) {
double pulselength;
pulselength = 1000000; // 1,000,000 us per second
pulselength /= SERVO_FREQ; // Analog servos run at ~60 Hz updates
Serial.print(pulselength); Serial.println(" us per period");
pulselength /= 4096; // 12 bits of resolution
Serial.print(pulselength); Serial.println(" us per bit");
pulse *= 1000000; // convert input seconds to us
pulse /= pulselength;
Serial.println(pulse);
pwm.setPWM(n, 0, pulse);
}
bool program_play_forward = true;
void programFrameCallback() {
// Serial.println("programFrameCallback");
// if ( dimmer_program_position + 1 >= dimmer_program_length ) {
// Serial.println("Program Complete");
// // if we are configured to loop, then restart the program
// dimmer_program_position = 0;
// return;
// }
// go to the next frame
//dimmer_program_position++;
if ( program_play_forward ) {
if (dimmer_program_position >= dimmer_program_length) {
Serial.println("Program Complete forward");
// complete
program_play_forward = false;
dimmer_program_position++;
} else {
dimmer_program_position++;
}
} else {
if (dimmer_program_position <= 0) {
Serial.println("Program Complete backward");
program_play_forward = true;
dimmer_program_position--;
} else {
dimmer_program_position--;
}
}
sequence_frame_t frame = sequence_steps[dimmer_program_position];
// run the current frame
if ( frame.ch1 != NO_VALUE ) {
current_frame.ch1 = frame.ch1;
}
if ( frame.ch2 != NO_VALUE ) {
current_frame.ch2 = frame.ch2;
}
if ( frame.ch3 != NO_VALUE ) {
current_frame.ch3 = frame.ch3;
}
if ( frame.ch4 != NO_VALUE ) {
current_frame.ch4 = frame.ch4;
}
}
void runTestProgram() {
int high = SERVOMAX;
int low = SERVOMIN;
addProgramSequence( 0, low, high, 2 * 1000 );
// addProgramSequence( 1, high, low, .2 * 1000 );
// addProgramSequence( 1, 100, 0, 2*1000 );
// addProgramSequence( 1, 0, 50, 2*1000 );
// addProgramSequence( 1, 50, 0, 2*1000 );
// addProgramSequence( 1, 0, 100, 1*1000 );
// addProgramSequence( 1, 100, 0, .5*1000 );
//
// addProgramSequence( 1, 0, 0, 5*1000 );
}
int pulseWidth(int angle) {
int pulse_wide, analog_value;
pulse_wide = map(angle, 0, 180, SERVOMIN, SERVOMAX);
analog_value = int(float(pulse_wide) / 1000000 * SERVO_FREQ * 4096);
Serial.println(analog_value);
return analog_value;
}
void setServo( int servonum, int angle ) {
pwm.setPWM(servonum, 0, pulseWidth(angle));
// Serial.println(servonum);
// for (uint16_t pulselen = SERVOMIN; pulselen < pos; pulselen++) {
// pwm.setPWM(servonum, 0, pulselen);
// }
}
void closeServo( int servonum ) {
Serial.println("Close Servo: " + String(servonum) );
for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen += 10) {
Serial.println("Pulse: " + String( pulselen ) );
pwm.setPWM(servonum, 0, pulselen);
delay(250);
}
}
void openServo( int servonum ) {
Serial.println("Open Servo: " + String(servonum) );
for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen -= 10) {
Serial.println("Pulse: " + String( pulselen ) );
pwm.setPWM(servonum, 0, pulselen);
delay(100);
}
}
void openFlower( int servonum ) {
Serial.println("Close Servo: " + String(servonum) );
for (uint16_t pulselen = SERVOMIN; pulselen < SERVOMAX; pulselen += 1) {
Serial.println("Pulse: " + String( pulselen ) );
pwm.setPWM(servonum, 0, pulselen);
delay(100);
}
}
void closeFlower( int servonum ) {
Serial.println("Open Servo: " + String(servonum) );
for (uint16_t pulselen = SERVOMAX; pulselen > SERVOMIN; pulselen -= 1) {
Serial.println("Pulse: " + String( pulselen ) );
pwm.setPWM(servonum, 0, pulselen);
//strip.setPixelColor(i, strip.Color(0, 255, 255));
delay(50);
}
}
#define NEOPIXEL_PIN 2
#define NEOPIXEL_NUM_PIXELS 16
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NEOPIXEL_NUM_PIXELS, NEOPIXEL_PIN, NEO_GRB + NEO_KHZ800);
// Fill the dots one after the other with a color
void colorWipe(uint32_t c, uint8_t wait) {
for (uint16_t i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, c);
strip.show();
delay(wait);
}
}
// Input a value 0 to 255 to get a color value.
// The colours are a transition r - g - b - back to r.
uint32_t Wheel(byte WheelPos) {
WheelPos = 255 - WheelPos;
if (WheelPos < 85) {
return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
}
if (WheelPos < 170) {
WheelPos -= 85;
return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
}
WheelPos -= 170;
return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
}
void rainbow(uint8_t wait) {
uint16_t i, j;
for (j = 0; j < 256; j++) {
for (i = 0; i < strip.numPixels(); i++) {
strip.setPixelColor(i, Wheel((i + j) & 255));
}
strip.show();
delay(wait);
}
}
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
void setupDisplay() {
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // Address 0x3D for 128x64
Serial.println(F("SSD1306 allocation failed"));
for (;;); // Don't proceed, loop forever
}
display.begin(SSD1306_SWITCHCAPVCC); // Switch OLED
display.clearDisplay();
display.display();
display.setTextSize(1); // Normal 1:1 pixel scale
display.setTextColor(WHITE); // Draw white text
display.setCursor(0, 0); // Start at top-left corner
// display.cp437(true); // Use full 256 char 'Code Page 437' font
display.println("Workstudyplay Thing");
display.display();
}
void setupNeoPixels() {
// This is for Trinket 5V 16MHz, you can remove these three lines if you are not using a Trinket
#if defined (__AVR_ATtiny85__)
if (F_CPU == 16000000) clock_prescale_set(clock_div_1);
#endif
// End of trinket special code
strip.begin();
colorWipe(strip.Color(255, 255, 255), 50);
strip.setBrightness(20);
strip.show(); // Initialize all pixels to 'off'
}
//#include <WebSocketClient.h>
//using namespace net;
//WebSocketClient wsClient;
//
//void setupWS() {
// // Ethernet/WiFi initialization goes here ...
// // ...
//
// client.onOpen([](WebSocket &ws) {
// const char message[]{ "Hello from Arduino client!" };
// ws.send(message, strlen(message));
// });
// client.onClose([](WebSocket &ws, const WebSocket::CloseCode &code,
// const char *reason, uint16_t length) {
// // ...
// });
// client.onMessage([](WebSocket &ws, const WebSocket::DataType &dataType,
// const char *message, uint16_t length) {
// // ...
// });
//
// client.open("echo.websocket.org", 80);
//}
#include "http-server.h"
#include "ota.h"
void setup()
{
Serial.begin(115200);
Serial.println("Mounting FS...");
if (!LittleFS.begin()) {
Serial.println("Failed to mount file system");
return;
}
if (!loadConfig()) {
Serial.println("Failed to load config");
} else {
Serial.println("Config loaded");
}
scanner.Init();
scanner.Scan();
setupServos();
//setupDisplay();
setupNeoPixels();
Serial.println("connecting WiFi: " + String(ssid) );
// Connect to WiFi network
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
// Set up mDNS responder:
// - first argument is the domain name, in this example
// the fully-qualified domain name is "esp8266.local"
// - second argument is the IP address to advertise
// we send our IP address on the WiFi network
if (!MDNS.begin(_hostname.c_str())) {
Serial.println("Error setting up MDNS responder!");
while (1) {
delay(1000);
}
}
Serial.println("mDNS responder started");
// runTestProgram();
startTickers();
// Start TCP (HTTP) server
server.begin();
Serial.println("TCP server started");
setupHTTP();
// Add service to MDNS-SD
MDNS.addService("http", "tcp", 80);
configureOTA();
ArduinoOTA.begin();
}
int pos_max = 180;
int pos;
void loop()
{
if (tickerRunning) {
ticker.execute();
}
server.handleClient();
ArduinoOTA.handle();
}
|
c592bc322176a32aadaf72bf6e6f06c21c8545bf | 8e4d9de6d3d1e7714d886d2f8994e605b4a67ff3 | /includes/handleroot.cc | b280c62aaefb6878614c5d2f0f28eab8c9a2be62 | [] | no_license | MorganAskins/wcsim-display | 907001a8017c2fca3fa2ea3a1f34179c58b63630 | 222728005135def9671796df05a8dad60f1a9f77 | refs/heads/master | 2020-03-25T05:43:56.079987 | 2018-08-03T19:23:37 | 2018-08-03T19:23:37 | 143,463,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,809 | cc | handleroot.cc | /*
This software is intended to reconstruct and display
an event from WCSim root output files in 3D.
The intentions are for this software to provide a
3D environment using OpenGL independent of root that
allows the user to explore the PMT hits by zooming,
rotating, and translating the origin.
This software should further be able to analyze an event
by coloring coding based upon energy as well as making
various cuts. All of this should be packaged neatly into
a very simple GUI so that the user doesn't need to
know the source code to navigate.
*/
#include "handleroot.h"
using namespace std;
// Make to RAT
void handleRoot::fillGeo(TString filename, vector<float> &pmtID,
vector<float> &posX, vector<float> &posY,
vector<float> &posZ){
TFile *file = new TFile(filename);
TTree *gtree = (TTree*)file->Get("wcsimGeoT");
//Get the geometry tree
WCSimRootGeom *wcsimrootgeom = new WCSimRootGeom();
TBranch *gbranch = gtree->GetBranch("wcsimrootgeom");
gbranch->SetAddress(&wcsimrootgeom);
gtree->GetEntry(0);
int numPMTs = wcsimrootgeom->GetWCNumPMT();
CylinderHeight = wcsimrootgeom->GetWCCylLength();
CylinderRadius = wcsimrootgeom->GetWCCylRadius();
for (int i = 0; i < numPMTs; i++){
WCSimRootPMT thePMT = wcsimrootgeom->GetPMT(i);
pmtID.push_back (i + 1);
posX.push_back(thePMT.GetPosition(0));
posY.push_back(thePMT.GetPosition(1));
posZ.push_back(thePMT.GetPosition(2));
}
// file->Delete();
// wcsimrootgeom->Delete();
delete file;
delete wcsimrootgeom;
return;
}
handleRoot::handleRoot(TString filename, int argc, char **argv, int aEventNum){
/* Set up the WCSim file */
gSystem->Load("libWCSimRoot.so");
EventNum = aEventNum;
fillGeo(filename, pmtID, pmtX, pmtY, pmtZ);
TFile *f = new TFile(filename);
TTree *tree = (TTree*)f->Get("wcsimT");
// Reconstruction
TTree *truetree = (TTree*)f->Get("TRUTH");
TTree *FITA = (TTree*)f->Get("FITA");
vertexTrue[0] = 9; // Used for error checking in main.cpp
if(FITA != NULL && truetree != NULL ){
truetree->SetBranchAddress("vertex", &vertexTrue);
truetree->SetBranchAddress("direction", &dirTrue);
FITA->SetBranchAddress("vertex", &vertexReco);
FITA->SetBranchAddress("direction", &dirReco);
truetree->GetEntry(EventNum);
FITA->GetEntry(EventNum);
}
totalEvents = tree->GetEntries();
//Get the event tree
WCSimRootEvent *wcsimrootevent = new WCSimRootEvent();
TBranch *branch = tree->GetBranch("wcsimrootevent");
branch->SetAddress(&wcsimrootevent);
branch->SetAutoDelete(kTRUE);
WCSimRootTrigger *wcsimroottrigger;
tree->GetEvent(EventNum);
branch->GetEvent(EventNum);
wcsimroottrigger = wcsimrootevent->GetTrigger(0);
int numHits = wcsimroottrigger->GetNcherenkovdigihits();
hitX.resize(numHits);
hitY.resize(numHits);
hitZ.resize(numHits);
Pe.resize(numHits);
time.resize(numHits);
int j=0;
/*
for (int i=0; i<numHits; i++){
TObject *Hit = (wcsimroottrigger->GetCherenkovHits())->At(i);
TObject *Time = (wcsimroottrigger->GetCherenkovHitTimes())->At(i);
WCSimRootCherenkovHit *chit = dynamic_cast<WCSimRootCherenkovHit*>(Hit);
WCSimRootCherenkovHitTime *cTime = dynamic_cast<WCSimRootCherenkovHitTime*>(Time);
int tubeID = chit->GetTubeID() - 1;
time[j] =cTime->GetTruetime();
hitX[j] = pmtX[tubeID];
hitY[j] = pmtY[tubeID];
hitZ[j] = pmtZ[tubeID];
Pe[j] = *//*chit->GetTotalPe(0) + *//*chit->GetTotalPe(1);
j++;
} */
// Using digital hits
for (int i=0; i<numHits; i++){
TObject *Hit = (wcsimroottrigger->GetCherenkovDigiHits())->At(i);
WCSimRootCherenkovDigiHit *theHit = dynamic_cast<WCSimRootCherenkovDigiHit*>(Hit);
int tubeID = theHit->GetTubeId() -1;
time[j] = theHit->GetT();
hitX[j] = pmtX[tubeID];
hitY[j] = pmtY[tubeID];
hitZ[j] = pmtZ[tubeID];
Pe[j] = theHit->GetQ();
j++;
}
delete f;
delete wcsimrootevent;
return;
}
void handleRoot::returnVectors(vector<float> &pmtid, vector<float> &pmtx,
vector<float> &pmty, vector<float> &pmtz,
vector<float> &hitx, vector<float> &hity,
vector<float> &hitz, vector<float> &pe,
vector<float> &TIME, float &CylHeight,
float &CylRadius, int &NumberofEvents,
double *vertexT, double *vertexR,
double *dirT, double *dirR){
pmtid = pmtID;
pmtx = pmtX;
pmty = pmtY;
pmtz = pmtZ;
hitx = hitX;
hity = hitY;
hitz = hitZ;
pe = Pe;
TIME = time;
CylHeight = CylinderHeight;
CylRadius = CylinderRadius;
NumberofEvents = totalEvents;
for(int i=0; i<3; i++){
vertexT[i] = vertexTrue[i];
dirT[i] = dirTrue[i];
vertexR[i] = vertexReco[i];
dirR[i] = dirReco[i];
}
return;
}
|
d3c1b30015e6281142a6b9772c4648893f49a0c3 | cbf147a95a38c71eb87b8ec86b454b67af208eec | /sources/ctss/include/tachar.inc | 19e97bf8b062291de78aa4a61e78fc9fa25a0db4 | [] | no_license | pittsdave/IBM7000 | 4d87a20046165529285f9444942a9e90764a1172 | e69379bd73ae3f2fd9c941b33ca3842ed1def589 | refs/heads/master | 2021-05-17T16:53:19.209120 | 2020-03-28T22:16:08 | 2020-03-28T22:16:08 | 250,881,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,001 | inc | tachar.inc | REM TACHAR M37/BCD CODE TABLE TACH0001
REM ASCII AS OF DEC 1 66 TACH0002
* 1 USED TO TRANSMIT LOWER CASE BCD TACH0003
* 2 USED TO TRANSMIT UPPER CASE BCD TACH0004
* 3 USED TO RECIEVE TELY CHAR .GE. 64 TACH0005
* 4 USED TO RECIEVE TELY CHAR .L. 64 TACH0006
REM TACH0007
TACHAR SYN * TACH0008
VFD O9/117, 00 1 TACH0009
ETC O9/003, 00 2 TACH0010
ETC O9/156, 00 3 TACH0011
ETC O9/200 00 4 TACH0012
VFD O9/116, 01 1 TACH0013
ETC O9/042, 01 2 TACH0014
ETC O9/555, 01 3 TACH0015
ETC O9/534 01 4 TACH0016
VFD O9/115, 02 1 TACH0017
ETC O9/043, 02 2 TACH0018
ETC O9/013, 02 3 TACH0019
ETC O9/574 02 4 TACH0020
VFD O9/114, 03 1 TACH0021
ETC O9/104, 03 2 TACH0022
ETC O9/552, 03 3 TACH0023
ETC O9/500 03 4 TACH0024
VFD O9/113, 04 1 TACH0025
ETC O9/134, 04 2 TACH0026
ETC O9/503, 04 3 TACH0027
ETC O9/573 04 4 TACH0028
VFD O9/112, 05 1 TACH0029
ETC O9/132, 05 2 TACH0030
ETC O9/035, 05 3 TACH0031
ETC O9/171 05 4 TACH0032
VFD O9/111, 06 1 TACH0033
ETC O9/077, 06 2 TACH0034
ETC O9/011, 06 3 TACH0035
ETC O9/170 06 4 TACH0036
VFD O9/110, 07 1 TACH0037
ETC O9/207, 07 2 TACH0038
ETC O9/010, 07 3 TACH0039
ETC O9/167 07 4 TACH0040
VFD O9/107, 10 1 TACH0041
ETC O9/155, 10 2 TACH0042
ETC O9/007, 10 3 TACH0043
ETC O9/166 10 4 TACH0044
VFD O9/106, 11 1 TACH0045
ETC O9/153, 11 2 TACH0046
ETC O9/006, 11 3 TACH0047
ETC O9/165 11 4 TACH0048
VFD O9/200, 12 1 TACH0049
ETC O9/041, 12 2 TACH0050
ETC O9/005, 12 3 TACH0051
ETC O9/164 12 4 TACH0052
VFD O9/102, 13 1 TACH0053
ETC O9/170, 13 2 TACH0054
ETC O9/004, 13 3 TACH0055
ETC O9/163 13 4 TACH0056
VFD O9/130, 14 1 TACH0057
ETC O9/136, 14 2 TACH0058
ETC O9/003, 14 3 TACH0059
ETC O9/162 14 4 TACH0060
VFD O9/200, 15 1 TACH0061
ETC O9/172, 15 2 TACH0062
ETC O9/002, 15 3 TACH0063
ETC O9/151 15 4 TACH0064
VFD O9/200, 16 1 TACH0065
ETC O9/305, 16 2 TACH0066
ETC O9/001, 16 3 TACH0067
ETC O9/150 16 4 TACH0068
VFD O9/200, 17 1 TACH0069
ETC O9/210, 17 2 TACH0070
ETC O9/000, 17 3 TACH0071
ETC O9/147 17 4 TACH0072
VFD O9/124, 20 1 TACH0073
ETC O9/131, 20 2 TACH0074
ETC O9/061, 20 3 TACH0075
ETC O9/146 20 4 TACH0076
VFD O9/076, 21 1 TACH0077
ETC O9/036, 21 2 TACH0078
ETC O9/033, 21 3 TACH0079
ETC O9/145 21 4 TACH0080
VFD O9/075, 22 1 TACH0081
ETC O9/035, 22 2 TACH0082
ETC O9/040, 22 3 TACH0083
ETC O9/144 22 4 TACH0084
VFD O9/074, 23 1 TACH0085
ETC O9/034, 23 2 TACH0086
ETC O9/073, 23 3 TACH0087
ETC O9/143 23 4 TACH0088
VFD O9/073, 24 1 TACH0089
ETC O9/033, 24 2 TACH0090
ETC O9/020, 24 3 TACH0091
ETC O9/142 24 4 TACH0092
VFD O9/072, 25 1 TACH0093
ETC O9/032, 25 2 TACH0094
ETC O9/054, 25 3 TACH0095
ETC O9/141 25 4 TACH0096
VFD O9/071, 26 1 TACH0097
ETC O9/031, 26 2 TACH0098
ETC O9/034, 26 3 TACH0099
ETC O9/131 26 4 TACH0100
VFD O9/070, 27 1 TACH0101
ETC O9/030, 27 2 TACH0102
ETC O9/074, 27 3 TACH0103
ETC O9/130 27 4 TACH0104
VFD O9/067, 30 1 TACH0105
ETC O9/027, 30 2 TACH0106
ETC O9/014, 30 3 TACH0107
ETC O9/127 30 4 TACH0108
VFD O9/066, 31 1 TACH0109
ETC O9/026, 31 2 TACH0110
ETC O9/120, 31 3 TACH0111
ETC O9/126 31 4 TACH0112
VFD O9/217, 32 1 THIS IS ARDS SETPOINT TACH0113
ETC O9/213, 32 2 TACH0114
ETC O9/505, 32 3 TACH0115
ETC O9/125 32 4 TACH0116
VFD O9/121, 33 1 TACH0117
ETC O9/214, 33 2 TACH0118
ETC O9/053, 33 3 TACH0119
ETC O9/124 33 4 TACH0120
VFD O9/126, 34 1 TACH0121
ETC O9/001, 34 2 TACH0122
ETC O9/504, 34 3 TACH0123
ETC O9/123 34 4 TACH0124
VFD O9/105, 35 1 TACH0125
ETC O9/167, 35 2 TACH0126
ETC O9/137, 35 3 TACH0127
ETC O9/122 35 4 TACH0128
VFD O9/216, 36 1 THIS IS ARDS VECTOR TACH0129
ETC O9/206, 36 2 TACH0130
ETC O9/514, 36 3 TACH0131
ETC O9/121 36 4 TACH0132
VFD O9/216, 37 1 TACH0133
ETC O9/135, 37 2 TACH0134
ETC O9/060, 37 3 TACH0135
ETC O9/560 37 4 TACH0136
VFD O9/122, 40 1 TACH0137
ETC O9/040, 40 2 TACH0138
ETC O9/200, 40 3 TACH0139
ETC O9/540 40 4 TACH0140
VFD O9/065, 41 1 TACH0141
ETC O9/025, 41 2 TACH0142
ETC O9/036, 41 3 TACH0143
ETC O9/512 41 4 TACH0144
VFD O9/064, 42 1 TACH0145
ETC O9/024, 42 2 TACH0146
ETC O9/032, 42 3 TACH0147
ETC O9/501 42 4 TACH0148
VFD O9/063, 43 1 TACH0149
ETC O9/023, 43 2 TACH0150
ETC O9/076, 43 3 TACH0151
ETC O9/502 43 4 TACH0152
VFD O9/062, 44 1 TACH0153
ETC O9/022, 44 2 TACH0154
ETC O9/554, 44 3 TACH0155
ETC O9/553 44 4 TACH0156
VFD O9/061, 45 1 TACH0157
ETC O9/021, 45 2 TACH0158
ETC O9/200, 45 3 TACH0159
ETC O9/071 45 4 TACH0160
VFD O9/060, 46 1 TACH0161
ETC O9/020, 46 2 TACH0162
ETC O9/200, 46 3 TACH0163
ETC O9/070 46 4 TACH0164
VFD O9/057, 47 1 TACH0165
ETC O9/017, 47 2 TACH0166
ETC O9/200, 47 3 TACH0167
ETC O9/067 47 4 TACH0168
VFD O9/056, 50 1 TACH0169
ETC O9/016, 50 2 TACH0170
ETC O9/200, 50 3 TACH0171
ETC O9/066 50 4 TACH0172
VFD O9/055, 51 1 TACH0173
ETC O9/015, 51 2 TACH0174
ETC O9/200, 51 3 TACH0175
ETC O9/065 51 4 TACH0176
VFD O9/203, 52 1 TACH0177
ETC O9/103, 52 2 TACH0178
ETC O9/561, 52 3 TACH0179
ETC O9/064 52 4 TACH0180
VFD O9/133, 53 1 TACH0181
ETC O9/044, 53 2 TACH0182
ETC O9/511, 53 3 TACH0183
ETC O9/063 53 4 TACH0184
VFD O9/125, 54 1 TACH0185
ETC O9/144, 54 2 TACH0186
ETC O9/200, 54 3 TACH0187
ETC O9/062 54 4 TACH0188
VFD O9/201, 55 1 TACH0189
ETC O9/101, 55 2 TACH0190
ETC O9/510, 55 3 TACH0191
ETC O9/051 55 4 TACH0192
VFD O9/200, 56 1 TACH0193
ETC O9/100, 56 2 TACH0194
ETC O9/576, 56 3 TACH0195
ETC O9/050 56 4 TACH0196
VFD O9/200, 57 1 TACH0197
ETC O9/200, 57 2 TACH0198
ETC O9/200, 57 3 TACH0199
ETC O9/047 57 4 TACH0200
VFD O9/137, 60 1 TACH0201
ETC O9/037, 60 2 TACH0202
ETC O9/532, 60 3 TACH0203
ETC O9/046 60 4 TACH0204
VFD O9/120, 61 1 TACH0205
ETC O9/304, 61 2 TACH0206
ETC O9/533, 61 3 TACH0207
ETC O9/045 61 4 TACH0208
VFD O9/054, 62 1 TACH0209
ETC O9/014, 62 2 TACH0210
ETC O9/536, 62 3 TACH0211
ETC O9/044 62 4 TACH0212
VFD O9/053, 63 1 TACH0213
ETC O9/013, 63 2 TACH0214
ETC O9/052, 63 3 TACH0215
ETC O9/043 63 4 TACH0216
VFD O9/052, 64 1 TACH0217
ETC O9/012, 64 2 TACH0218
ETC O9/572, 64 3 TACH0219
ETC O9/042 64 4 TACH0220
VFD O9/051, 65 1 TACH0221
ETC O9/011, 65 2 TACH0222
ETC O9/055, 65 3 TACH0223
ETC O9/041 65 4 TACH0224
VFD O9/050, 66 1 TACH0225
ETC O9/010, 66 2 TACH0226
ETC O9/072, 66 3 TACH0227
ETC O9/031 66 4 TACH0228
VFD O9/047, 67 1 TACH0229
ETC O9/007, 67 2 TACH0230
ETC O9/135, 67 3 TACH0231
ETC O9/030 67 4 TACH0232
VFD O9/046, 70 1 TACH0233
ETC O9/006, 70 2 TACH0234
ETC O9/513, 70 3 TACH0235
ETC O9/027 70 4 TACH0236
VFD O9/045, 71 1 TACH0237
ETC O9/005, 71 2 TACH0238
ETC O9/576, 71 3 TACH0239
ETC O9/026 71 4 TACH0240
VFD O9/202, 72 1 TACH0241
ETC O9/212, 72 2 TACH0242
ETC O9/515, 72 3 TACH0243
ETC O9/025 72 4 TACH0244
VFD O9/123, 73 1 TACH0245
ETC O9/004, 73 2 TACH0246
ETC O9/200, 73 3 TACH0247
ETC O9/024 73 4 TACH0248
VFD O9/127, 74 1 TACH0249
ETC O9/002, 74 2 TACH0250
ETC O9/200, 74 3 TACH0251
ETC O9/023 74 4 TACH0252
VFD O9/200, 75 1 TACH0253
ETC O9/211, 75 2 TACH0254
ETC O9/200, 75 3 TACH0255
ETC O9/022 75 4 TACH0256
VFD O9/200, 76 1 TACH0257
ETC O9/171, 76 2 TACH0258
ETC O9/200, 76 3 TACH0259
ETC O9/021 76 4 TACH0260
VFD O9/200, 77 1 TACH0261
ETC O9/000, 77 2 TACH0262
ETC O9/200, 77 3 TACH0263
ETC O9/506 77 4 TACH0264
DL37 SYN *-1 TACH0265
DAC 753,3777,0 CR TACH0266
DAC 755,3777,1 TAB TACH0267
DAC 747,3777,240 FORM TACH0268
DAC 3777,24,0 200 MS SPACE TACH0269
DAC 3777,1000,0 4 SEC SPACE TACH0270
DAC 345,3777,24 CR NO LF TACH0271
DAC 333,333,0 LF TACH0272
DAC 711,613,0 P OFF TACH0273
DAC 711,211,0 PON TACH0274
DAC 351,3777,30 VERT TAB TACH0275
DAC 711,227,0 BLACK TACH0276
DAC 711,631,0 RED TACH0277
REM CAUTION SHOULD BE EXERCISED BEFORE INCREASING THIS TABLE TACH0278
REM TACH0279
REM ARDS SPECILA CHARACTERS TACH0280
REM TACH0281
DLARDS SYN *-1 TACH0282
DAC 753,0,0 C.R. TACH0283
DAC 755,0,0 TAB TACH0284
ERASIN DAC 747,0,0 ERASE (F.F.) TACH0285
DAC 3777,24,0 PROB NOT USED , FOR COMPLETENESS TACH0286
DAC 337,367,0 HANGUP TACH0287
DAC 345,0,0 CR NO LF TACH0288
DAC 333,0,0 LF NOT IMPLEMENTED TACH0289
DAC 733,0,0 POFF TACH0290
DAC 727,0,0 PON TACH0291
DAC 351,3777,30 VERT TAB NOT IMPLEMENTED TACH0292
DAC 0,0,0 BLACK SHIFT FOR ARDS.... TACH0293
DAC 0,0,0 RED SHIFT FOR ARDS.... TACH0294
GLICH DAC 1,0,0 BOTTOMOM OF PAGE TACH0295
BLANCK DAC 277,0,0 BALNK FOR SIMULATING TAB TACH0296
STX DAC 373,0,0 MESSAGE BEGINNER TACH0297
ETX DAC 771,0,0 MESSAGE TERMINATOR TACH0298
CHARNS DAC 307,0,0 CHARACTER MODE CHARACTER TACH0299
SETINS DAC 705,0,0 SETPOINT MODE CHARACTER TACH0300
LLINNS DAC 703,0,0 LINE MODE CHARACTER TACH0301
SLINE DAC 301,0,0 SHORT LINE MODE CHARACTER TACH0302
* TACH0303
TACH0305
TACNT SYN * TACH0306
OCT 01111111 000 TACH0307
OCT 11111111 010 TACH0308
OCT 11111111 020 TACH0309
OCT 11111111 030 TACH0310
OCT 11111111 040 TACH0311
OCT 11111111 050 TACH0312
OCT 11111111 060 TACH0313
OCT 11111111 070 TACH0314
OCT 11111111 100 TACH0315
OCT 11111111 110 TACH0316
OCT 11111111 120 TACH0317
OCT 11111111 130 TACH0318
OCT 00000000 140 TACH0319
OCT 00000000 150 TACH0320
OCT 00400432 160 TACH0321
OCT 00000000 170 TACH0322
|
aeffeff404f64066f25b5675bdf75f71eac4aab0 | e3c15190312b8778c92ea3d5f1a17add8819c717 | /LC_00279_PerfectSquares.cpp | 47faa0478f36fab4fd4ec30ae91668a34eefb186 | [] | no_license | jordandong/myleetcodes | a0d36ab3fa25e1f2d424ba2545f4359767ef98b6 | 99fb567982111521abcb7fc1a477f5d1743cda33 | refs/heads/master | 2021-11-22T12:22:31.870593 | 2021-08-31T05:32:33 | 2021-08-31T05:32:33 | 6,758,451 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | LC_00279_PerfectSquares.cpp | /*
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n.
For example,
given n = 12, return 3 because 12 = 4 + 4 + 4;
given n = 13, return 2 because 13 = 4 + 9.
Credits:
Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.
Hide Tags Dynamic Programming Math
*/
class Solution {
public:
int numSquares(int n) {
vector<int> mi(n + 1, INT_MAX);
mi[0] = 0;
for(int i = 1; i <= n; i++)
for(int j = 1; j * j <= i; j++)
if(mi[i] >= mi[i - j * j] + 1)
mi[i] = mi[i - j * j] + 1;
return mi[n];
}
};
|
4cbedf36ca512f61c8b82b40b7d6386b9f156b32 | 484c883525a11ffebd106070aaa7d4e872fc6df6 | /seg_converter.cpp | 55478bcb8611f23de4737f70f06a6dbb0c750211 | [] | no_license | maoq1984/MTL | 7d865176a7290c733d02076215040d3b7d7424cc | cb8cd6ca3d446a57c131ba43dc83eb8516618c0a | refs/heads/master | 2016-09-06T02:31:11.021486 | 2014-08-10T02:47:59 | 2014-08-10T02:47:59 | 22,799,715 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,534 | cpp | seg_converter.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <string.h>
using namespace std;
// B=1. E=2, I=3
vector<vector<string> > transform(const char *crf_results)
{
vector<vector<string> > results;
ifstream ifs_crf(crf_results);
char line[8192];
vector<string> temp;
while(!ifs_crf.eof())
{
ifs_crf.getline(line,sizeof(line));
if(line[0] == '\0')
{
if(temp.size() > 0)
results.push_back(temp);
temp.clear();
continue;
}
string tuple(line);
temp.push_back(tuple);
}
return results;
}
vector<vector<string> > transform(const char*gold_crf, const char *label_file)
{
vector<vector<string> > results;
ifstream ifs_crf(gold_crf);
ifstream ifs_label(label_file);
char line[8192];
int label;
vector<string> temp;
while(!ifs_crf.eof() && !ifs_label.eof())
{
ifs_crf.getline(line,sizeof(line));
if(line[0] == '\0') //new line
{
if(temp.size() > 0)
results.push_back(temp);
temp.clear();
continue;
}
ifs_label >> label;
string tuple(line);
if(label == 1)
{
tuple.append(" B");
}else if(label == 2)
{
tuple.append(" I");
}else if(label == 3)
{
tuple.append(" E");
}else
{
cerr<<"error label"<<label<<endl;
}
temp.push_back(tuple);
}
ifs_crf.close();
ifs_label.close();
return results;
}
void output_segment(const char* out_target, const char* out_predict, vector<vector<string> > & results)
{
ofstream ofs_target(out_target);
ofstream ofs_predict(out_predict);
int num_sent = results.size();
for(int i = 0;i<num_sent;i++)
{
vector<string> sent = results[i];
int num_words = sent.size();
string sent_target;
string sent_predict;
for(int j = 0;j<num_words;j++)
{
string line = sent[j];
char * temp_line = const_cast<char *> (line.c_str());
char *token =NULL;
token = strtok(temp_line,"\t ");
string chars(token);
token = strtok(NULL,"\t ");
if(token[0] == 'B')
{
sent_target.append(" ");
}
sent_target.append(chars);
token = strtok(NULL,"\t ");
if(token[0] == 'B')
{
sent_predict.append(" ");
}
sent_predict.append(chars);
}
ofs_target << sent_target <<endl;
ofs_predict << sent_predict <<endl;
}
ofs_target.close();
ofs_predict.close();
}
int main(int argc, char* argv[])
{
const char *target_file = argv[1];
const char *predict_file = argv[2];
if(argc == 4)
{
const char *crf_results_file = argv[3];
vector<vector<string> > results = transform(crf_results_file);
output_segment(target_file,predict_file,results);
}
else if(argc == 5)
{
const char*gold_crf = argv[3];
const char *label_file = argv[4];
vector<vector<string> > results = transform(gold_crf,label_file);
output_segment(target_file,predict_file,results);
}
else
{
cerr<<"the formate is : target_file predict_file [crf_results_file / gold_crf label_file]\n";
}
//const char*gold_crf = "D:/Projects/sequence_labeling/results/as_test_gold.crf";
//const char *label_file = "D:/Projects/sequence_labeling/results/as_test_gold.outtags";
//const char *target_file = "D:/Projects/sequence_labeling/results/as_test_gold.target";
//const char *predict_file = "D:/Projects/sequence_labeling/results/as_test_gold.predict";
//vector<vector<string> > results = transform(gold_crf,label_file);
//output_segment(target_file,predict_file,results);
return 0;
}
|
4fda5a6bebbe1f892c2bf371d10ece6764081883 | 4837862006c4717400a35a8d80b5f14497fc2208 | /ch04/ex-4.28.cc | 2f5d64346632fb7e0193bebc31ebebd76fc004f6 | [] | no_license | nagisatk/cpp-primer | b282929f9b28882955ab6bd94bc93633b2f5c5fb | 18dbacfd81b56b9b43df692c5139a8b87e10e077 | refs/heads/master | 2021-01-22T23:05:26.313015 | 2017-11-17T07:17:26 | 2017-11-17T07:17:26 | 102,422,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 925 | cc | ex-4.28.cc | #include<iostream>
using std::cout;
using std::endl;
#include<cstdio>
int main() {
cout << "Built-in type 'char' takes " << sizeof(char) << "\tbytes of memory." << endl;
cout << "Built-in type 'short' takes " << sizeof(short) << "\tbytes of memory." << endl;
cout << "Built-in type 'int' takes " << sizeof(int) << "\tbytes of memory." << endl;
cout << "Built-in type 'long' takes " << sizeof(long) << "\tbytes of memory." << endl;
cout << "Built-in type 'float' takes " << sizeof(float) << "\tbytes of memory." << endl;
cout << "Built-in type 'double' takes " << sizeof(double) << "\tbytes of memory." << endl;
cout << "Built-in type 'long long' takes " << sizeof(long long) << "\tbytes of memory." << endl;
cout << "Built-in type 'long double' takes " << sizeof(long double) << "\tbytes of memory." << endl;
} |
35f032a10cfea3702732e89fe204cb4993d28aaf | 7f905f401ea6d3f4363be80ec9d6afa7a1c59ee4 | /Character.h | e8a77b563d08ac91bb603dc589d99aa3aca8ae21 | [] | no_license | RafaGandelman/The-Dungon-Game | ed3fd71d932242f28e980dddfaf98f59c4d2007f | b119aedd746092b18fa2d05c43ccec7cc6e47f54 | refs/heads/master | 2021-01-06T09:05:19.665205 | 2020-02-18T04:40:23 | 2020-02-18T04:40:23 | 241,272,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | Character.h | //Header of the Character class
#ifndef CHARACTER_H
#define CHARACTER_H
#include <string>
#include <iostream>
using namespace std;
class Character
{
public:
Character();
void setHealth(int changeHealth);
int getHealth();
void changeGold(int change);
int getGold();
void setName(string newName);
string getName();
void setArmorClass(int newArmorClass);
int getArmorClass();
void setLevel();
int getLevel();
private:
string name;
int level;
int health;
int armorClass;
int gold;
};
#endif |
484d8fcdcd18a3e5bf2377dac8431f1ad959e4d2 | 5973bcaa222bf08bb42ecc1b4d239d832313495d | /engine/event/eventmanager.h | 2c5be74c15d0165e5dbab480c2ef7bd7b088d2fb | [] | no_license | noobneo/NoobEngine | 0fb17e8cfd90df7704db456794bd746492d08d78 | de165f9bc58403c8565e8c16a13072107424fcf3 | refs/heads/master | 2021-05-08T09:11:35.653990 | 2018-08-06T06:15:44 | 2018-08-06T06:15:44 | 107,099,345 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,514 | h | eventmanager.h | #ifndef _EVENTS_MANAGER_H_
#define _EVENTS_MANAGER_H_
/*-------------------------------------------------------
Copyright (C) 2017 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents without the prior
written consent of DigiPen Institute of Technology is prohibited.
File Name: eventmanager.h
Purpose: manages event handling
Language: C/C++
Platform: Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24210 , x64 ,Windows 7
Project: CS529_ajaytanwar
Author: Ajay Singh Tanwar, ajay.tanwar, 60001317
Creation date: 16th October 2017
---------------------------------------------------------*/
#include <vector>
#include <unordered_map>
#include "../components/maincomponent.h"
#include "../components/gameobject.h"
#include "event.h"
namespace enginecore {
namespace events{
class BroadCastData {
public:
BroadCastData() {}
Event event_;
component::MainComponent* component_;
};
class EventManager
{
public:
static EventManager* GetInstance();
void Reset();
void Destroy();
void SendEvent(Event* event);
void AddToQueue(Event event , component::MainComponent* component);
void SendEvent(Event* event, component::MainComponent* component);
void SubscribeComponentToEvent(EventType type, component::MainComponent* component);
void SubscribeGameobjectToEvent(EventType type, component::GameObject* component);
void UnscribeThisComponent(EventType type, component::MainComponent* component);
void UnscribeThisGameObject(EventType type, component::GameObject* obj);
void AddTimedEvent(Event* ev);
void AddTimedEvent(EventType type, float time);
void Update(float dt);
void BroadCast(Event * event);
private:
EventManager()=default;
~EventManager() =default;
EventManager(const EventManager&) = delete;
EventManager& operator= (const EventManager&) = delete;
// void BroadCast(EventType type);
void BroadCastToSubscribers(Event* event);
private:
static EventManager* instance_;
std::vector<BroadCastData> broad_cast_queue_;///boardcast to all gamobjects
std::unordered_map<EventType, std::unordered_map<int , component::MainComponent*> > components_subscribors_;
std::unordered_map<EventType, std::unordered_map<int , component::GameObject*> > gameobjects_subscribers_;
std::list<Event*> timed_events_;
std::vector<Event>broadcast_event_cast_queue_;
std::vector<BroadCastData>queue_event_for_components_;
};
}
}
#endif // !_EVENTS_MANAGER_H_
|
982ade1e88d0e412cdfa3c54761951294bb7d325 | d6ad2097c2d652676a2e6776dc1db9669764cec7 | /ex1.c++ | ca30678ad5e7802b4b9556b937fa4895cba546e5 | [] | no_license | ro1f12/OOP-BASICS | 43715f386d6d732fd0cafdbe3c675b4b8d442d1e | 383cb7c2f1fb84d00bf2741aa5819a9815d76dc1 | refs/heads/master | 2020-03-25T17:28:53.247979 | 2018-08-08T07:58:16 | 2018-08-08T07:58:16 | 143,979,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | ex1.c++ | #include<iostream>
using namespace std;
class triangle
{
float a,b,c;
public:
triangle(float t1,float t2,float t3)
{
a=t1;
b=t2;
c=t3;
}
friend int is_triangle (triangle t)
{
return(t.a+t.b>t.c && t.b+t.c>t.a && t.a+t.c>t.b);
}
int is_iso()
{
return((a==b)||(b==c)||(c==a));
}
int is_equi()
{
if(is_iso())
if((a==b)&&(a==c))
return 1;
return 0;
}
};
int main()
{
triangle t (12,12,12);
if (is_triangle(t))
{
t.is_iso()? cout<< "\n triangle is isoceles \n":
cout<< "\n triangle is not isoceles \n";
t.is_equi()? cout<< "\n triangle is equilateral \n":
cout<< "\n triangle is not equilateral \n";
}
else
cout<< "\n sides donot form a traiangle \n";
return 0;
}
| |
694cb116a1979a52c802d088300d19c300becc69 | 56b0c908ef9a8eb51a9cf516f43001cb424d0906 | /holdem/src/LYHandOdds.cpp | 521aaab11260364c2187f94d13fed2f4f5194012 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | vforks/libpoker | 46f81d3a8b41aed8c14f692e6e8bdfee8807bcff | a2c60884fc5c8e31455fb39e432c49e0df55956b | refs/heads/master | 2021-09-25T02:41:10.010549 | 2018-10-17T09:36:09 | 2018-10-17T09:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,252 | cpp | LYHandOdds.cpp | /*
* LYHandOdds.cpp
*
* Created on: 2013-6-5
* Author: caiqingfeng
*/
//#include <boost/foreach.hpp>
#include "LYHandOdds.h"
LYHandOdds::LYHandOdds(std::vector<LYCard > const &cds, LYHoldemAlgorithmDelegate *had) :
LYHandStrength(cds, had)
{
// TODO Auto-generated constructor stub
std::vector<LYCard>::const_iterator it = cds.begin();
for (; it != cds.end(); it++) {
LYCard card = *it;
this->putCardIntoMap(card);
}
clean_dup_straight();
clean_dup_fullhouse();
}
LYHandOdds::~LYHandOdds() {
// TODO Auto-generated destructor stub
}
unsigned int LYHandOdds::flush_base()
{
std::string indexs[] = {"FluSpades", "FluHearts", "FluDiamonds", "FluClubs"};
unsigned int baseCount = 0;
for (unsigned int i=0; i<4; i++) {
std::string idx = indexs[i];
// LY_LOG_DBG("in flush_base: idx=" << idx);
std::map<std::string, std::vector<LYCard> >::iterator it = oddsMap.find(idx);
if (it != oddsMap.end() && (oddsMap[idx].size() > baseCount)) {
baseCount = oddsMap[idx].size();
}
}
return baseCount;
}
void LYHandOdds::clean_dup_straight()
{
for (unsigned int face = 1; face <= 10; face++) {
std::string idx = "Str*2*";
if (face == 1) {
idx = "StrA25";
} else {
idx[3] = g_faces[face];
idx[5] = g_faces[face+4];
}
std::map<std::string, std::vector<LYCard> >::iterator it = oddsMap.find(idx);
if (it == oddsMap.end()) {
continue;
}
//drop duplicated faces
std::vector<LYCard> newcards;
std::vector<LYCard>::iterator it2 = oddsMap[idx].begin();
for (; it2 != oddsMap[idx].end(); it2++) {
LYCard cd = *it2;
bool dup = false;
std::vector<LYCard>::iterator it2 = newcards.begin();
for (; it2 != newcards.end(); it2++) {
LYCard cd2 = *it2;
if (cd2 != cd && cd2.face == cd.face) {
dup = true;
break;
}
}
if (!dup) {
newcards.push_back(cd);
}
}
oddsMap[idx] = newcards;
}
}
void LYHandOdds::clean_dup_fullhouse()
{
// LY_LOG_DBG("enter clean_dup_fullhouse");
char first, second;
for (int i = 0; i<15; i++)
{
first = g_faces[i];
if (first == 'X' || first == 'Y') continue;
for (int j = 0; j<15; j++)
{
second = g_faces[j];
if (second == 'X' || second == 'Y') continue;
std::string idx = "Ful**";
idx[3] = first;
idx[4] = second;
std::map<std::string, std::vector<LYCard> >::iterator it = oddsMap.find(idx);
if (it == oddsMap.end()) {
continue;
}
//FulAK should have two As and one K, delete one A with two Ks
// LY_LOG_DBG("cleanning ..." << idx << ",size=" << oddsMap[idx].size());
if (oddsMap[idx].size() < 4) {
oddsMap.erase(it);
continue;
}
unsigned int firstCount = 0;
unsigned int secondCount = 0;
std::vector<LYCard>::iterator it2 = oddsMap[idx].begin();
for (; it2 != oddsMap[idx].end(); it2++) {
LYCard cd = *it2;
if (cd.getFaceSymbol() == first) {
firstCount ++;
} else if (cd.getFaceSymbol() == second) {
secondCount ++;
}
}
// LY_LOG_DBG("firstCount=" << firstCount << ",secondCount=" << secondCount);
if (firstCount != 3) {
oddsMap.erase(it);
}
}
}
}
unsigned int LYHandOdds::straight_base()
{
unsigned int baseCount = 0;
for (unsigned int face = 1; face <= 10; face++) {
std::string idx = "Str*2*";
if (face == 1) {
idx = "StrA25";
} else {
idx[3] = g_faces[face];
idx[5] = g_faces[face+4];
}
std::map<std::string, std::vector<LYCard> >::iterator it = oddsMap.find(idx);
if (it == oddsMap.end()) {
continue;
}
if (oddsMap[idx].size() > baseCount) {
baseCount = oddsMap[idx].size();
}
}
return baseCount;
}
void LYHandOdds::putCardIntoMap(const LYCard &cd)
{
std::vector<std::string> indexs = genIndex(cd);
// LY_LOG_DBG("card = " << cd.face << cd.suit);
std::vector<std::string>::iterator it = indexs.begin();
for (; it != indexs.end(); it++) {
std::string idx = *it;
// LY_LOG_DBG("idx=" << idx);
std::map<std::string, std::vector<LYCard> >::iterator it = oddsMap.find(idx);
if (it != oddsMap.end()) {
// LY_LOG_DBG("added one card, already have " << ((std::vector<LYCard>)it->second).size());
// BOOST_FOREACH(LYCard kd, ((std::vector<LYCard>)it->second)) {
// LY_LOG_DBG("card=" << kd.toString());
// }
oddsMap[idx].push_back(cd);
} else {
// LY_LOG_DBG("added first card");
std::vector<LYCard> cards;
cards.push_back(cd);
oddsMap[idx] = cards;
}
}
}
std::vector<LYCard> LYHandOdds::get_odds(std::string idx)
{
std::map<std::string, std::vector<LYCard> >::iterator it = oddsMap.find(idx);
if (it != oddsMap.end()) {
return oddsMap[idx];
}
return std::vector<LYCard>();
}
std::vector<std::string> LYHandOdds::genIndex(const LYCard &cd)
{
std::vector<std::string> indexs;
switch (cd.suit)
{
case Spades:
indexs.push_back("FluSpades");
break;
case Hearts:
indexs.push_back("FluHearts");
break;
case Diamonds:
indexs.push_back("FluDiamonds");
break;
case Clubs:
indexs.push_back("FluClubs");
break;
default:
break;
}
//set/quad/onepair
std::string setStr = "Set*";
setStr[3] = cd.getFaceSymbol();
indexs.push_back(setStr);
std::string quadStr = "Qua*";
quadStr[3] = cd.getFaceSymbol();
indexs.push_back(quadStr);
std::string onePairStr = "1pr*";
onePairStr[3] = cd.getFaceSymbol();
indexs.push_back(onePairStr);
//2pairs
for (unsigned int face = 2; face <= 14; face++) {
std::string twoPair = "2pr**";
if (face > (unsigned int)cd.face) {
twoPair[3] = g_faces[face];
twoPair[4] = cd.getFaceSymbol();
} else if (face < (unsigned int)cd.face) {
twoPair[3] = cd.getFaceSymbol();
twoPair[4] = g_faces[face];
} else {
continue;
}
indexs.push_back(twoPair);
}
//full house
for (unsigned int face = 2; face <= 14; face++) {
if (face == (unsigned int)cd.face) {
continue;
}
std::string fullHouse1 = "Ful**";
fullHouse1[3] = g_faces[face];
fullHouse1[4] = cd.getFaceSymbol();
std::string fullHouse2 = "Ful**";
fullHouse2[3] = cd.getFaceSymbol();
fullHouse2[4] = g_faces[face];
indexs.push_back(fullHouse1);
indexs.push_back(fullHouse2);
}
//straight and straight flush
if ((unsigned int)cd.face <= 5) {
std::string straight = "StrA25";
std::string straightFlush = "SnF*A25";
straightFlush[3] = cd.getSuitSymbol();
indexs.push_back(straight);
indexs.push_back(straightFlush);
}
if ((unsigned int)cd.face == 14) { //Ace
std::string straight1 = "StrA25";
std::string straight2 = "StrT2A";
indexs.push_back(straight1);
indexs.push_back(straight2);
std::string straightFlush1 = "SnF*A25";
straightFlush1[3] = cd.getSuitSymbol();
std::string straightFlush2 = "SnF*T2A";
straightFlush2[3] = cd.getSuitSymbol();
indexs.push_back(straightFlush1);
indexs.push_back(straightFlush2);
} else {
for (unsigned int face = 2; face <= 10; face++) {
if (face > (unsigned int)cd.face || (unsigned int)cd.face > face+4) {
continue;
}
// face<= cd.face <= face+4
std::string straight = "Str*2*";
straight[3] = g_faces[face];
straight[5] = g_faces[face+4];
std::string straightFlush = "SnF**2*";
straightFlush[3] = cd.getSuitSymbol();
straightFlush[4] = g_faces[face];
straightFlush[6] = g_faces[face+4];
indexs.push_back(straight);
indexs.push_back(straightFlush);
}
}
return indexs;
}
|
341c1c94734d77fd36a539b1d83fcc01719390ad | e428638df7c259a9da2b4a8856008da8251aa388 | /Include/Applications/MSW/GteWICFileIO.h | 9d0fe4355a3f9a395dbf63961c970968bf18772b | [
"BSL-1.0"
] | permissive | vehsakul/gtl | 22a9ee057a282d3edbb99eaa30ad6e68773c768e | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | refs/heads/master | 2020-12-24T06:41:48.314735 | 2016-11-14T18:16:36 | 2016-11-14T18:16:36 | 73,462,121 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,631 | h | GteWICFileIO.h | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#pragma once
#include <Graphics/GteTexture2.h>
#include <guiddef.h>
#include <memory>
namespace gte
{
class GTE_IMPEXP WICFileIO
{
public:
// Support for loading from BMP, GIF, ICON, JPEG, PNG, and TIFF.
// The returned texture has a format that matches as close as possible
// the format on disk. If the load is not successful, the function
// returns a null object.
static std::shared_ptr<Texture2> Load(std::string const& filename,
bool wantMipmaps);
// Support for saving to PNG format. Currently, the only formats
// supported are R8G8B8A8 and R16.
static bool SaveToPNG(std::string const& filename,
std::shared_ptr<Texture2> const& texture);
// Support for saving to JPEG format. Currently, the only formats
// supported are R8G8B8A8 and R16. The image quality is in [0,1], where
// a value of 0 indicates lowest quality (largest amount of compression)
// and a value of 1 indicates highest quality (smallest amount of
// compression).
static bool SaveToJPEG(std::string const& filename,
std::shared_ptr<Texture2> const& texture, float imageQuality);
private:
class ComInitializer
{
public:
~ComInitializer();
ComInitializer();
bool IsInitialized() const;
private:
bool mInitialized;
};
template <typename T>
class ComObject
{
public:
ComObject();
ComObject(T* inObject);
~ComObject();
operator T*() const;
T& operator*() const;
T** operator&();
T* operator->() const;
private:
T* object;
};
struct LoadFormatMap
{
DFType gtFormat;
GUID const* wicInputGUID;
GUID const* wicConvertGUID;
};
enum { NUM_LOAD_FORMATS = 14 };
static LoadFormatMap const msLoadFormatMap[NUM_LOAD_FORMATS];
struct SaveFormatMap
{
DFType gtFormat;
GUID const* wicOutputGUID;
};
enum { NUM_SAVE_FORMATS = 11 };
static SaveFormatMap const msSaveFormatMap[NUM_SAVE_FORMATS];
// Helper function to share code between saving PNG and JPEG. Set
// imageQuality to -1.0f for PNG. Set it to a number in [0,1] for
// JPEG.
static bool SaveTo(std::string const& filename,
std::shared_ptr<Texture2> const& texture, float imageQuality);
};
}
|
2acb19460e5d7badd98ffa945465e0f0d6d01799 | cd75778c4e7d1dd2f1ead556dd3a8568b35f9e62 | /Source/Processor/Modules/Effects/Base/Effect.cpp | 5a9b7d2e7ecc6421e7465fa52447bf89ebba9055 | [] | no_license | yesitsfebreeze/spool | c94c6ada7da250eb844468f1c457afaec7a1de4e | 4fc8cb582c57f3b385cf5690019c22ce4dbe2d37 | refs/heads/master | 2023-06-13T00:32:09.246537 | 2021-07-12T13:16:52 | 2021-07-12T13:16:52 | 373,948,552 | 0 | 1 | null | 2021-07-10T07:21:25 | 2021-06-04T20:06:09 | C++ | UTF-8 | C++ | false | false | 428 | cpp | Effect.cpp | #include "Effect.h"
#include "Processor/SpoolProcessor.h"
Effect::Effect(SpoolProcessor* processor, ParameterValue& wet, ParameterValue& paramA, ParameterValue& paramB, int index, int track, int sample) :
processor(processor),
wet(wet),
paramA(paramA),
paramB(paramB),
index(index),
track(track),
sample(sample)
{
setupDefaultParams();
setupParamValueListeneres();
};
|
bc78deb51dc94502f5dd7ec48b7541eebbc840a4 | 3597f98b2bc37b101cbfb4c3e632ab19dfb32e09 | /kernel/core/memory.h | 8ca5ad319dc0ab2dd7c07958690a3a6f7ab0b4c1 | [
"MIT"
] | permissive | RyRose/smouth-os | 318e49bb43acb99792ebd70037f95f406080ad66 | 845cd8a497d5bc9e057f35cadb2bfb0ab767d6d0 | refs/heads/main | 2021-09-10T06:04:41.887801 | 2021-09-06T19:32:37 | 2021-09-06T19:32:37 | 92,564,837 | 2 | 0 | MIT | 2021-06-19T22:00:28 | 2017-05-27T02:38:54 | C++ | UTF-8 | C++ | false | false | 2,529 | h | memory.h | #ifndef KERNEL_CORE_MEMORY_H
#define KERNEL_CORE_MEMORY_H
#include <stdint.h>
#include "kernel/arch/common/memory.h"
#include "util/list.h"
#include "util/status.h"
namespace kernel {
template <size_t N>
class BumpAllocator {
public:
// Create makes a bump allocator using the provided list of regions. It
// assumes the following about the list of regions in order to provide
// accurate allocations:
// 1. Each available memory region is disjoint with another available region.
// 2. If any unavailable memory regions intersects with an available
// region, their memory addresses must be aligned in order to
// be de-duped. In addition, the aligned available memory region must not
// be a subset of the unavailable memory region.
//
static util::StatusOr<BumpAllocator<N>> Create(
const util::List<arch::MemoryRegion, N>& regions) {
BumpAllocator<N> allocator;
for (size_t i = 0; i < regions.Size(); i++) {
ASSIGN_OR_RETURN(const auto& arch_region, regions.At(i));
if (arch_region->type != arch::MemoryRegionType::AVAILABLE) {
continue;
}
Region region;
region.length = arch_region->length;
region.address = arch_region->address;
RETURN_IF_ERROR(allocator.regions_.Add(region));
}
// Subtract out reserved regions from available regions if necessary.
for (size_t i = 0; i < allocator.regions_.Size(); i++) {
ASSIGN_OR_RETURN(auto& region, allocator.regions_.At(i));
for (size_t j = 0; j < regions.Size(); j++) {
ASSIGN_OR_RETURN(const auto& arch_region, regions.At(j));
if (arch_region->type != arch::MemoryRegionType::AVAILABLE &&
arch_region->address == region->address) {
region->address += arch_region->length;
region->length -= arch_region->length;
}
}
}
return allocator;
}
util::StatusOr<void*> Allocate(const size_t n) {
for (size_t i = 0; i < regions_.Size(); i++) {
ASSIGN_OR_RETURN(auto& region, regions_.At(i));
if (n > region->length) {
continue;
}
void* address = reinterpret_cast<void*>(region->address);
region->address += n;
region->length -= n;
return address;
}
return util::Status(util::ErrorCode::BUFFER_OVERFLOW,
"no available memory region");
}
private:
struct Region {
uint64_t address;
uint64_t length;
};
util::List<Region, N> regions_;
};
} // namespace kernel
#endif // KERNEL_CORE_MEMORY_H
|
fde6485e019d2ac028b2dea73adf3f3bc43d2692 | cdb198135f04f6506457b2eeabee575e431e9bcd | /tools/ekc/src/ek/editor/assets/particles_asset.hpp | 48b69f05b2a47641e3181286d3a1390df4c7ab4d | [] | no_license | superman2211/ekx | 7cbdbbd235a6110ea5c8c6e1d3771e97594d4d40 | 59b8c287f27a0e6dda9ad7a1d2d5728b587e4a23 | refs/heads/master | 2023-05-13T18:03:49.365539 | 2021-06-07T10:56:16 | 2021-06-07T10:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 393 | hpp | particles_asset.hpp | #pragma once
#include "editor_asset.hpp"
namespace ek {
// TODO:
class particles_asset_t : public editor_asset_t {
public:
inline static const char* type_name = "particles";
explicit particles_asset_t(path_t path);
void read_decl_from_xml(const pugi::xml_node& node) override;
void build(assets_build_struct_t& data) override;
private:
//ParticleDecl decl_;
};
}
|
6eb6958e16d9417ee93c8b9f5534deff9a8d9f98 | 9df24e9110f06ea1004588c87a908c68497b22c0 | /vijos/P1157.cpp | 5665046ac56398086ba0a70cd21a5293c6c3147a | [] | no_license | zhangz5434/code | b98f9df50f9ec687342737a4a2eaa9ef5bbf5579 | def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f | refs/heads/master | 2020-07-02T17:24:14.355545 | 2019-03-13T12:39:45 | 2019-03-13T12:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 694 | cpp | P1157.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
const int MAXN=2005;
struct node
{
int a,b,s;
}p[MAXN];
int c1,c2,c3;
int ans;
int n;
inline bool cmp(const node&a,const node&b)
{
return a.s<b.s;
}
void init()
{
scanf("%d",&n);
scanf("%d%d%d",&c1,&c2,&c3);
for(int i=1;i<=n;i++)
{
scanf("%d%d",&p[i].a,&p[i].b);
p[i].s=p[i].a*c1+p[i].b*c2;
}
}
int main()
{
init();
sort(p+1,p+n+1,cmp);
for(int i=1;i<=n;i++)
{
int a0=p[i].a; int b0=p[i].b; int cur=i;
int tot=0;
while(p[cur++].s<=c1*a0+c2*b0+c3&&cur<=n)
tot++;
ans=max(ans,tot);
}
cout<<ans<<endl;
return 0;
}
|
842e73e28fb5459dfcbd13899f9bb47bee72000c | 9ed8445e7a03ace3161f9d391b79294d4f35cb30 | /chapter08/chapter08_ex05.cpp | 316f003329188609019437885c57aa9896e0cfd2 | [] | no_license | johnto20/stroustrup_ppp | 64161f06c4156ae8604fc466d5f260e94e610e87 | 9c8fafdc50048993cfe74eca7c3f7bdc825c57c9 | refs/heads/master | 2021-01-10T22:19:39.026277 | 2016-10-11T09:57:43 | 2016-10-11T09:57:43 | 69,138,346 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | chapter08_ex05.cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <time.h>
using namespace std;
inline void keep_window_open(){char ch;cin>>ch;}
vector <int> newrevvec;
vector<int> revvec(vector<int> x){
for(int i=0; i<x.size();++i){
newrevvec.push_back(x[x.size()-(i+1)]);
}
return newrevvec;
}
void revvecoriginal(vector<int>& x){
int j=x.size()-1;
for(int i=0;i<x.size();++i){
swap(x[i],x[j]);
if (i>=x.size()/2) break;
--j;
}
}
int main(){
vector<int> ajlist {1,3,5,7,9,11};
for(int i=0;i<ajlist.size();++i){
cout << ajlist[i];
if(i<(ajlist.size()-1)){
cout << ", ";
}
else{
cout << ", ";
}
}
revvec(ajlist); // this function reverses the origina vector in a new vector
cout <<'\n';
for(int i=0;i<newrevvec.size();++i){
cout << newrevvec[i];
if(i==newrevvec.size()-1){
cout << ". ";
}
else{
cout << ", ";
}
}
cout << '\n';
revvecoriginal(ajlist); // reverse using pass by reference
for(int i=0;i<ajlist.size();++i){
cout << ajlist[i];
if(i==ajlist.size()-1){ // extra code just to add some commas etc for formatting
cout << ".";
}
else{
cout << ", ";
}
}
cout << '\n';
revvecoriginal(ajlist); // test that reverses back to original
for(int i=0;i<ajlist.size();++i){
cout << ajlist[i];
if(i==ajlist.size()-1){
cout << ".";
}
else{
cout << ", ";
}
}
return 0;
}
|
00eff49d22ba629eafbe86e4ac8089083eb1c406 | 5234bc430c83d616a8214d7f77c2c081543b6b26 | /src/Cpp/101-200/116.PefectBinTreeConnectRight.h | b535526bf0a0301e4b2dc45da8de212f79737cb1 | [
"Apache-2.0"
] | permissive | AveryHuo/PeefyLeetCode | 3e749b962cadfdf10d7f7b1ed21c5fafc4342950 | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | refs/heads/master | 2022-04-26T06:01:18.547761 | 2020-04-25T09:55:46 | 2020-04-25T09:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,319 | h | 116.PefectBinTreeConnectRight.h |
#ifndef __PERFECT_BINARY_TREE_CONNECT_RIGHT_H
#define __PERFECT_BINARY_TREE_CONNECT_RIGHT_H
#include <iostream>
#include <vector>
#include <map>
#include <queue>
#include <math.h>
#include <stack>
#include <set>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
using namespace std;
static int x = []() {
ios::sync_with_stdio(false);
cin->tie(NULL);
return 0;
}();
class Node {
public:
int val;
Node* left;
Node* right;
Node* next;
Node() {}
Node(int _val, Node* _left, Node* _right, Node* _next) {
val = _val;
left = _left;
right = _right;
next = _next;
}
};
class Solution {
public:
Node* connect(Node* root) {
if (root == nullptr)
return nullptr;
vector<Node*> stack;
stack.push_back(root);
while (stack.size() > 0){
vector<Node*> tmp;
Node* lastnode = nullptr;
for (Node* node : stack){
node->next = lastnode;
lastnode = node;
if (node->right != nullptr)
tmp.push_back(node->right);
if (node->left != nullptr)
tmp.push_back(node->left);
}
stack = tmp;
}
return root;
}
};
#endif
|
f02923420e21686aef67649bb8ff05d7269d7585 | bb2abaf75ffcafb5cab0bcde2825a5f699c32114 | /cpp_spider/client/Spider/dll/EOpenSSL.cpp | 2880a05ae2e820a2dccbcf244da4e8c27989ddbb | [] | no_license | leroy-0/CPP_2017 | 72afa80106fb437bb75a3545244098115308cb67 | f8de1b38dec8802ebf74e116470dbd465723bbc7 | refs/heads/master | 2022-06-08T07:59:26.647201 | 2020-05-05T14:34:07 | 2020-05-05T14:34:07 | 261,495,573 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | cpp | EOpenSSL.cpp | //
// Created by Yan on 10/2/2017.
//
#include "stdafx.h"
#include "EOpenSSL.hpp"
#pragma warning(disable : 4996)
#pragma warning(disable : 4267)
spider::EOpenSSL::EOpenSSL()
{
publicKey = NULL;
}
spider::EOpenSSL::~EOpenSSL()
{
}
void spider::EOpenSSL::init(std::string const & key)
{
active = initRsaFromText(key);
}
bool spider::EOpenSSL::initRsaFromText(const std::string & key)
{
BIO *keybio;
keybio = BIO_new_mem_buf(key.c_str(), -1);
if (keybio == NULL)
{
std::cout << "Failed to create key BIO" << std::endl;
return (false);
}
publicKey = RSA_new();
publicKey = PEM_read_bio_RSAPublicKey(keybio, &publicKey, NULL, NULL);
return (true);
}
const std::string spider::EOpenSSL::encrypt(std::string const & toEncrypt) const
{
std::string data;
std::string back;
unsigned char encrypt[245];
unsigned char encrypted[256];
int length;
data.assign(toEncrypt);
if (active == false)
return (data);
while (data.size() > 0)
{
length = (data.length() < 245) ? data.length() : 245;
data.copy(reinterpret_cast<char*>(encrypt), length);
memset(encrypted, 0, sizeof(encrypted));
RSA_public_encrypt(length, encrypt, encrypted, publicKey, RSA_PKCS1_PADDING);
back.append(std::string(reinterpret_cast<char*>(encrypted), 256));
data.erase(0, length);
}
return (back);
}
const std::string spider::EOpenSSL::decrypt(std::string const & toDecrypt) const
{
std::string data;
std::string back;
unsigned char encrypted[257];
unsigned char decrypted[245];
int decrypt_length;
data.assign(toDecrypt);
if (active == false)
return (data);
while (data.size() > 0)
{
data.copy(reinterpret_cast<char*>(encrypted), 256);
encrypted[256] = '\0';
memset(encrypted, 0, sizeof(encrypted));
decrypt_length = RSA_public_decrypt(256, encrypted, decrypted, publicKey, RSA_PKCS1_PADDING);
back.append(std::string(reinterpret_cast<char*>(decrypted), decrypt_length));
data.erase(0, 256);
}
return (back);
} |
6595f1cfb2da90d1e53951635e47a24fcfd18430 | d9cc44ee61ebf36151cd2ffd4f81fc29c9e8dd5c | /Rusty/LiftBagCodes/liftBagCode_Server/serverliftbag1/serverliftbag1.ino | 4b0ac5e4a942422811ac8f9ddbbb76eef19cef5b | [] | no_license | Naman311/ReconSubsea | b51412e835624cd5784af36d5269a31f8fc3da0f | 4535ed521b8b283f0a060926c9cccd6c77e87f98 | refs/heads/master | 2021-03-30T17:28:20.815482 | 2019-03-13T14:19:26 | 2019-03-13T14:19:26 | 123,790,039 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,043 | ino | serverliftbag1.ino | #include <ESP8266WiFi.h>
#include <string>
int in = 16;
const char* ssid="LiftBag";
IPAddress ip(192,168,4,1); //setting ip address
IPAddress gateway(192,168,1,1); //setting gateway
IPAddress subnet(255,255,255,0); //setting subnet
WiFiServer server(80); //setting server
String StrBuffer="";
void setupServer()
{
bool stats=WiFi.softAPConfig(ip,gateway,subnet); //wifi function returns boolean true or false when we configure it with data
WiFi.softAP(ssid); //configuring soft access point
Serial.print("IP address:");
Serial.println(WiFi.softAPIP()); //Printing IP address
server.begin(); //server begins
Serial.println("Starting server\n");
}
void endConnection()
{
WiFi.disconnect(); //Ends wiFi access point.
setupServer();
}
void setup() {
Serial.begin(115200);
delay(200);
setupServer();
pinMode(in, OUTPUT);
digitalWrite(in, HIGH);
}
void loop()
{
WiFiClient client = server.available();
StrBuffer="";
String ss;
if(client) //waiting for client to connect
{
while(client.connected())
{
delay(2);
StrBuffer=client.readStringUntil('\r'); //reads string from client
Serial.println(StrBuffer);
int buf=StrBuffer.toInt();
if(buf==1)
{
ss="1\r";
}
else if (buf==2)
{
digitalWrite(in, LOW);
ss="2\r";
}
else
{
ss="0/r";
}
client.print(ss); //Sending back status in string to client
ss="";
}
client.stop();
Serial.println("Client disconnected :(");
endConnection(); //ending wifi connection for the nodeMCU for 5 sec
}
}
|
2f8f3397c6138620d1fa946e7c25dc12acc237ef | b2fe4d0185212abfb4140074691c89d337495f0a | /LoadImage/main.cpp | c175a41f71f439fddc1e7aa426dc321d5675b9c2 | [] | no_license | wangyun123/LearnOSG | 65174d69e57cac1e2c3d9445153f224fbc0d7f6e | 928498e69ab5f9c2f9f5837cdacac0aaf1f4fb31 | refs/heads/master | 2020-07-13T04:13:01.589514 | 2017-09-21T08:17:39 | 2017-09-21T08:17:39 | 73,893,964 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | main.cpp | #include <opencv2\opencv.hpp>
#include <opencv2\highgui\highgui.hpp>
using namespace cv;
#ifdef _DEBUG
#pragma comment(lib, "opencv_core2413d.lib")
#pragma comment(lib, "opencv_highgui2413d.lib")
#else
#pragma comment(lib, "opencv_core2413.lib")
#pragma comment(lib, "opencv_highgui2413.lib")
#endif
int main()
{
VideoCapture capture("pop.avi");
while (true)
{
Mat frame;
capture >> frame;
imshow("video", frame);
waitKey(10);
}
// return 0;
} |
d0bd2f93b9171d6a16793ba1d6e3bcc26c14c5ef | 14880de95e78332db2f234096da698b5e2656034 | /map.cpp | a71ce5b491c37ccce98aa943d66d635138f8c83e | [] | no_license | Teaching-projects/SZE-MOSZE-2020-getTeamName | 7fb07e4e9a4f57c2e50ccc94cc2aa05669278542 | c62375ede608dc1ed3e43b139580fee6d8333f9a | refs/heads/master | 2023-01-29T19:33:17.820757 | 2020-12-10T20:08:20 | 2020-12-10T20:08:20 | 294,095,056 | 0 | 1 | null | 2020-12-10T20:08:22 | 2020-09-09T11:40:06 | C++ | UTF-8 | C++ | false | false | 905 | cpp | map.cpp | #include "map.h"
#include <algorithm>
Map::Map(const std::string& fname){
std::ifstream MapTxt(fname);
if(MapTxt.good())
{
std::string line;
while (getline(MapTxt, line)){
line.erase(std::remove(line.begin(), line.end(), '\n'), line.end());
line.erase(std::remove(line.begin(), line.end(), '\r'), line.end());
map.push_back(line);
}
}
else throw std::runtime_error("File does not exist: " + fname);
MapTxt.close();
}
Map::type Map::get( int x, int y) const{
if (y >= map.size() || x >= map[y].size()){
throw WrongIndexException();
}
if(map[y][x] == ' ') return Map::type::Free;
else if (map[y][x] == 'H') return Map::type::Hero;
else if (map[y][x] == 'M') return Map::type::Monster;
else return Map::type::Wall;
}
void Map::setType(char type, int x, int y) {
map[y][x] = type;
}
|
69c0e7c566fadd7d4f73c0eda84e9820e80f883b | 4256760d734c482fcf761cb9f9eef9a28e74e2dd | /FileDescriptors.cpp | 8ea0c746af43197a2630d61b3d8190a268e2456f | [
"Apache-2.0"
] | permissive | MarisaSchmidt/Files.And.Directories | 77d268d270ae1f6506e57cd78680254fa6794e73 | 188151a48e10150e2e16e13f2f3d0702ed330a1f | refs/heads/master | 2021-01-10T16:22:03.510800 | 2015-10-12T22:08:32 | 2015-10-12T22:08:32 | 44,136,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | FileDescriptors.cpp | //
// FileDescriptors.cpp
//
//
// Created by Marisa Schmidt on 3/20/15.
//
//
#include <stdio.h>
#include <iostream>
#include <string>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
using namespace std;
int main (int argc, char * argv[])
{
/* fd_set manages the set of files/I/O that we want to monitor */
fd_set set_of_files;
struct timeval tval;
int result;
//for user input
string input;
/*set host socket as first and only element */
FD_ZERO(&set_of_files);
FD_SET(0, &set_of_files); //zero is standard input
/* init timeout */
tval.tv_sec = 20; //20 seconds
tval.tv_usec = 0; //microseconds
result = select(0 + 1, &set_of_files, NULL, NULL, &tval);
/* 0 + 1 == the largest fd in the set, plus 1
&set_of_files == the set of files descriptors to monitor for read
NULL == monitor for write
NULL == monitor for exceptions/errors
&tval == return after amount of time regardless of situation
*/
if (result==0) {
//timed out...
sleep (1);
}
else if (result==-1) { //something is wrong in the select call
cout << "ERROR found with select call" << endl;
}
else {
//we get some input from the keyboard... ok to read from it now ///
getline(cin, input);
cout << "entered input : " << input << endl;
}
}
|
a1cac4e4317457d91b2049f5701ca5fe24c102b3 | be0e0488a46b57bf6aff46c687d2a3080053e52d | /cpp/baekjoon/17087 숨바꼭질6/17087 숨바꼭질6/소스.cpp | 7ce65148ee60ce6048a7f84c9eb99ec3526c35e5 | [] | no_license | syo0e/Algorithm | b3f8a0df0029e4d6c9cbf19dcfcb312ba25ea939 | 1ae754d5bb37d02f28cf1d50463a494896d5026f | refs/heads/master | 2023-06-09T11:31:54.266900 | 2021-06-30T17:04:38 | 2021-06-30T17:04:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | cpp | 소스.cpp | #include <iostream>
#include <cmath>
using namespace std;
int arr[100000];
int gcd(int a, int b) {
while (b > 0) {
int temp = b;
b = a % b;
a = temp;
}
return a;
}
int main() {
cin.tie(0);
ios::sync_with_stdio(0);
int N, S, answer;
cin >> N >> S;
for (int i = 0; i < N; i++) {
cin >> arr[i];
arr[i] = abs(arr[i]-S);
}
answer = gcd(arr[0], arr[1]);
for (int i = 2; i < N; i++) {
answer = gcd(answer, arr[i]);
}
cout << answer << "\n";
return 0;
} |
ae23b0d07ea4e796bc02d07fd181f79040224834 | c0a6d1738613e9b8c66e35967f66bd77a6a7a18f | /Battle_of_Zargabad.zargabad/RTS_Mission_Defines.hpp | 63044decf3e5dd88c95174c2b12e3345eea7a2ba | [
"MIT"
] | permissive | Sornaensis/a3-realtimetactics | 205001a77f161e74d6155731eb3f714af6888f24 | cc56d6f49b414f35f4af0fbe2deb5e22783878fa | refs/heads/master | 2022-03-21T22:41:57.105789 | 2022-03-05T12:37:23 | 2022-03-05T12:37:23 | 121,536,453 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 149 | hpp | RTS_Mission_Defines.hpp | #define RTS_SingleCommander true
#define RTS_skipBriefing true
#define RTS_skipDeployment true
#define RTS_Spectator true
//#define RTS_godseye true |
8baa4c60192b6e879c7c7783382cdf72f8718562 | 3d80d68564da1f1d650988a1fafe221d749cdc31 | /lib/Skins/ConstraintSeedExecutor.h | 7e58ebd9a45dc8208c009ff2797a2adc6162a9f2 | [
"NCSA"
] | permissive | heyitsanthony/klee-mc | ede73456fa0e928e67529ae19ae4723d483acfd3 | 184a809930c4f7823526a11474b1446dd7d92afb | refs/heads/master | 2020-05-30T03:18:24.188711 | 2016-05-29T09:16:42 | 2016-05-29T09:16:42 | 189,500,579 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,464 | h | ConstraintSeedExecutor.h | #ifndef CONSTRAINT_SEED_EXE_H
#define CONSTRAINT_SEED_EXE_H
#include "../Core/Executor.h"
#include "klee/Internal/Module/KInstruction.h"
#include "klee/Expr.h"
#include "ConstraintSeedCore.h"
namespace klee
{
class ExecutionState;
class MemoryObject;
template<typename T>
class ConstraintSeedExecutor : public T
{
public:
ConstraintSeedExecutor(InterpreterHandler* ie)
: T(ie), csCore(this) {}
virtual ~ConstraintSeedExecutor() {}
ObjectState* makeSymbolic(
ExecutionState& state,
const MemoryObject* mo,
const char* arrPrefix = "arr") override
{
ObjectState* os(T::makeSymbolic(state, mo, arrPrefix));
if (os == NULL)
return NULL;
csCore.addSeedConstraints(state, os->getArrayRef());
return os;
}
void executeInstruction(
ExecutionState &state, KInstruction *ki) override
{
const llvm::Instruction *i = ki->getInst();
/* XXX: this is not ideal; I'd prefer to instrument the
* code with a special instruction which will give me the
* expression I'm interested in. */
switch (i->getOpcode()) {
#define INST_DIVOP(x) \
case llvm::Instruction::x : { \
ref<Expr> r(T::eval(ki, 1, state)); \
if (r->getKind() == Expr::Constant) break; \
csCore.logConstraint(MK_EQ(MK_CONST(0, r->getWidth()), r));\
break; }
INST_DIVOP(UDiv)
INST_DIVOP(SDiv)
INST_DIVOP(URem)
INST_DIVOP(SRem)
#undef INST_DIVOP
}
T::executeInstruction(state, ki);
}
protected:
void instBranchConditional(
ExecutionState& state, KInstruction* ki) override
{
ref<Expr> cond(T::eval(ki, 0, state));
KBrInstruction *kbr = static_cast<KBrInstruction*>(ki);
T::instBranchConditional(state, ki);
if (cond->getKind() == Expr::Constant)
return;
/* seen both branches? */
if (kbr->hasFoundTrue() && kbr->hasFoundFalse())
return;
/* XXX: I think the kbr stuff is backwards, but
* the tests only work like this.
* Contradict */
if (kbr->hasFoundTrue())
csCore.logConstraint(cond);
else
csCore.logConstraint(MK_NOT(cond));
}
void xferIterInit(
struct T::XferStateIter& iter,
ExecutionState* state,
KInstruction* ki) override
{
T::xferIterInit(iter, state, ki);
if (iter.v->getKind() == Expr::Constant)
return;
/* NOTE: alternatively, this could be some stack location
* we want to inject an exploit into */
csCore.logConstraint(
MK_SLT( iter.v,
MK_CONST(0x400000 /* program beginning */,
iter.v->getWidth())));
}
private:
ConstraintSeedCore csCore;
};
}
#endif
|
b54d1f9ba254e2a05673f4d8ac44a32f1d07d61a | 876ef4f3ca2b67c9326b22db6c9e9568c2dd2837 | /Window_System_Programming/Chapter3/PolymorphicType2.cpp | f50c36dd18de2fbefa52e6a5581c831f0c9bc8b9 | [] | no_license | Airenn/Window_System_Programming | 1d9ddd0f44a789220f83c80b562d00a0ae19ddc2 | 127979dce67e9ba823352d42677d9488d292218b | refs/heads/master | 2023-05-31T00:53:14.159158 | 2021-06-22T23:46:05 | 2021-06-22T23:46:05 | 373,753,564 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 303 | cpp | PolymorphicType2.cpp | /*
PolymorphicType2.cpp
*/
#include <stdio.h>
#include <tchar.h>
#include <windows.h>
UINT_PTR CalDistance(UINT_PTR a, UINT_PTR b)
{
return a - b;
}
int _tmain(void)
{
INT32 val1 = 10;
INT32 val2 = 20;
_tprintf(_T("distance : %d \n", CalDistance((UINT_PTR)&val1, (UINT_PTR)&val2)));
return 0;
} |
b9547a59394186c6e049a3bcef22558fa9a3237c | 565e162060b09102dabbf9c0b31ad5c6e6e36e33 | /old_project1/code/src/viewer.hpp | 94bead0526cdd7d80e5be9c305db362ead2660f7 | [] | no_license | garibarba/dvo_ws1516 | fe013ab603c1b878fa7e7220cbaa1f2204467f06 | 8044b58a220a2391a30d2ecd0ea306aaad05d559 | refs/heads/master | 2021-01-01T03:43:52.116087 | 2016-04-16T06:40:03 | 2016-04-16T06:40:03 | 56,247,191 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,800 | hpp | viewer.hpp | #ifndef VIEWER_H
#define VIEWER_H
#include <fstream>
#include <vector>
#ifndef WIN64
#define EIGEN_DONT_ALIGN_STATICALLY
#endif
#include <Eigen/Dense>
#include <opencv2/core/core.hpp>
#include <boost/thread/thread.hpp>
#include <pcl/common/common_headers.h>
#include <pcl/visualization/pcl_visualizer.h>
void runViewer();
bool initialized = false;
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer;
boost::shared_ptr<boost::thread> visThread = boost::shared_ptr<boost::thread>(new boost::thread(runViewer));
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZRGB>);
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloudInit(new pcl::PointCloud<pcl::PointXYZRGB>);
bool cloudUpdated = false;
bool cloudInitUpdated = false;
boost::mutex cloudMutex;
Eigen::Matrix4f cloudPose = Eigen::Matrix4f::Identity();
bool doStopViewer = false;
bool pausing = false;
pcl::PointCloud<pcl::PointXYZRGB> createPointCloud(
const Eigen::Matrix3f K, const cv::Mat &depth, const cv::Mat &color
) {
pcl::PointCloud<pcl::PointXYZRGB> pointCloud;
int w = depth.cols;
int h = depth.rows;
float *pDepth = (float*)depth.data;
float *pColor = (float*)color.data;
for (int y = 0; y < h; ++y) {
for (int x = 0; x < w; ++x) {
size_t off = (y*w + x);
size_t off3 = off * 3;
// Check depth value validity
float d = pDepth[x + y*w];
if (d == 0.0f || std::isnan(d)) { continue; }
// RGBXYZ point
pcl::PointXYZRGB point;
// Color
point.b = max(0, min(255, (int)(pColor[off3 ]*255)));
point.g = max(0, min(255, (int)(pColor[off3+1]*255)));
point.r = max(0, min(255, (int)(pColor[off3+2]*255)));
// Position
Eigen::Vector3f pos = K.inverse() * Eigen::Vector3f(x*d, y*d, d);
point.x = pos[0];
point.y = pos[1];
point.z = pos[2];
pointCloud.push_back(point);
}
}
return pointCloud;
}
void keyboardEventOccurred (const pcl::visualization::KeyboardEvent &event, void* viewer_void) {
boost::shared_ptr<pcl::visualization::PCLVisualizer> viewer = *static_cast<boost::shared_ptr<pcl::visualization::PCLVisualizer> *> (viewer_void);
if (event.getKeySym () == "n" && event.keyDown () && pausing)
{
std::cout << "n was pressed => next frame" << std::endl;
pausing = false;
}
}
void runViewer()
{
viewer = boost::shared_ptr<pcl::visualization::PCLVisualizer>(new pcl::visualization::PCLVisualizer("3D Viewer"));
viewer->setBackgroundColor(0.3, 0.3, 0.3);
viewer->registerKeyboardCallback (keyboardEventOccurred, (void*)&viewer);
pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGB> rgbInit(cloudInit);
viewer->addPointCloud<pcl::PointXYZRGB>(cloudInit, rgbInit, "cloudInit");
viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 1, "cloudInit");
pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGB> rgb(cloud);
viewer->addPointCloud<pcl::PointXYZRGB>(cloud, rgb, "cloud");
viewer->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 5, "cloud");
viewer->addCoordinateSystem(0.1);
viewer->initCameraParameters();
viewer->setCameraPosition(0,0,-1,0,0,0,-1,0,0);
viewer->setCameraPosition(0,0,-1,0,0,0,0,-1,0);
initialized = true;
while (!viewer->wasStopped() && !doStopViewer)
{
if (cloudUpdated) {
cloudMutex.lock();
viewer->updatePointCloud(cloud, "cloud");
Eigen::Affine3f poseAff(cloudPose);
viewer->updatePointCloudPose("cloud", poseAff);
viewer->addCoordinateSystem(0.1, poseAff);
cloudUpdated = false;
cloudMutex.unlock();
}
if (cloudInitUpdated) {
cloudMutex.lock();
//viewer->updatePointCloud(cloudInit, "cloudInit");
cloudInitUpdated = false;
cloudMutex.unlock();
}
viewer->spinOnce(1);
boost::this_thread::sleep(boost::posix_time::milliseconds(1));
}
//viewer->close();
}
bool updateViewer(const pcl::PointCloud<pcl::PointXYZRGB> &pointCloud, const Eigen::Matrix4f &pose)
{
if (!initialized) { return true; }
if (viewer->wasStopped()) { return false; }
cloudMutex.lock();
if (cloudInit->empty())
{
pcl::copyPointCloud(pointCloud, *cloudInit);
cloudInitUpdated = true;
}
else
{
pcl::copyPointCloud(pointCloud, *cloud);
cloudPose = pose;
cloudUpdated = true;
}
cloudMutex.unlock();
// while(pausing) { boost::this_thread::sleep(boost::posix_time::milliseconds(1)); }
pausing = true;
return !viewer->wasStopped();
}
void stopViewer()
{
viewer->close();
doStopViewer = true;
}
#endif
|
b2394ed4cec0e9aa36bae84cf9faf61194e580f3 | da95bbfe7839c9ff85d5c8913aa06593dc514981 | /mems.cpp | b6f92e3242aea23d2250108f2e904fa19838d6d8 | [] | no_license | CS231/c-primer-plus | 973df2d90c950a93cdc088a8788d85cb2ee59e32 | 4aa5ebd71ca72ccd1b6df1327dad8791352dd173 | refs/heads/master | 2022-04-05T04:28:44.848965 | 2020-02-14T04:41:47 | 2020-02-14T04:41:47 | null | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 995 | cpp | mems.cpp | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define SIZE 10
void show_array (const int ar[], int n);
int main(void)
{
int values[SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int target[SIZE];
double curious[SIZE / 2] = {1.0, 2.0, 3.0, 4.0, 5.0};
puts("memcpy() used: ");
puts("values (original) data: ");
show_array(values, SIZE);
memcpy(target, values, SIZE * sizeof(int));
puts("target (copy of values): ");
show_array(target, SIZE);
puts("\nUsing memmove() with overlapping ranges: ");
memmove(values + 2, values, 5 * sizeof(int));
puts("values °™°™elements 0-5 copied to 2-7: ");
show_array(values, SIZE);
puts("\nUsing memcpy() to copy double to int: ");
memcpy(target, curious, (SIZE / 2) * sizeof(double));
puts("target °™°™5 doubles into 10 int positions: ");
show_array(target, SIZE);
return 0;
}
void show_array(const int ar[], int n)
{
int i;
for(i = 0; i < n; i++)
printf("%d ", ar[i]);
putchar('\n');
}
|
0eaed433463f0338bee6be1e66de9ec0ceb59987 | fb3249244041689df602ad01c4c61a6ef3ece3eb | /BreakoutClone/OpenGL Attempt1/Events/EventMessenger.cpp | 236276461343743361baf1130862c9fd2e02e755 | [] | no_license | Vaebh/opengl-attempt1 | 1714168d0f6bb51957699c38d206daa0a8e8449f | 6838dbb2784da14285bce82711635c96a68e5c3f | refs/heads/master | 2021-01-18T14:14:48.644484 | 2014-11-05T14:17:38 | 2014-11-05T14:17:38 | 32,260,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,514 | cpp | EventMessenger.cpp | #include "../Events/EventMessenger.h"
// TODO
// Switch all the loops in all methods to work like the one in SubscribeToEvent - as I am dumb
// and forgot that there were no pointers so I had to directly access and change the values
// With that in mind will probably change mEvents to store pointers to Events, not just Events
// Also have to work out how to pass class functions via function pointers, or if that's even possible without
// making the function pointer specific to that class
// Also look into making the enum list expandable, I want to be able to define more events outside of this header file via the
// comments I put in EventMessenger.h. With that in mind I should change the delegate to take unsigned ints, not EventTypes
EventMessenger* EventMessenger::mEventMessenger;
namespace
{
// Make a function for squashing the eventList down to size again
}
EventMessenger::EventMessenger()
{
Event newEvent;
mEvents.reserve(NUM_EVENTS);
for(uint32_t i = 0; i < NUM_EVENTS; ++i)
{
newEvent.mEventType = EventType(i);
mEvents.push_back(newEvent);
}
}
EventMessenger* EventMessenger::GetSingleton()
{
if(!mEventMessenger)
{
mEventMessenger = new EventMessenger();
}
return mEventMessenger;
}
void EventMessenger::RecordEvent(const uint32_t& inEventType, GameObject* inTarget, const float& inEventNotificationDelay)
{
for(uint32_t i = 0; i < mEvents.size(); ++i)
{
if(mEvents[i].mEventType == inEventType)
{
for(uint32_t j = 0; j < mEvents[i].mEventTargets.size(); ++j)
{
EventPair& theEventPair = mEvents[i].mEventTargets[j];
// If the recorded gameobject matches the stored gameobject
if(theEventPair.first != NULL && theEventPair.first == inTarget)
{
(*theEventPair.second)(inEventType, theEventPair.first);
break;
}
}
}
}
}
void EventMessenger::BroadcastEvent(const uint32_t& inEventType, const float& inEventNotificationDelay)
{
for(uint32_t i = 0; i < mEvents.size(); ++i)
{
if(mEvents[i].mEventType == inEventType)
{
for(uint32_t j = 0; j < mEvents[i].mEventTargets.size(); ++j)
{
if(mEvents[i].mEventTargets[j].second != NULL)
{
(*mEvents[i].mEventTargets[j].second)(inEventType, NULL);
}
}
}
}
}
// Loop through event list, if the delegate is null or already there then return,
// otherwise add it to the delegate list
void EventMessenger::SubscribeToEvent(const uint32_t& inEventType, GameObject* inTarget, MessageDelegate inMsgDel)
{
if(inMsgDel == NULL || inTarget == NULL)
return;
for(uint32_t i = 0; i < mEvents.size(); ++i)
{
if(mEvents[i].mEventType == inEventType)
{
for(uint32_t j = 0; j < mEvents[i].mEventTargets.size(); ++j)
{
EventPair& theEventPair = mEvents[i].mEventTargets[j];
if(theEventPair.first == inTarget)
{
// If it's the same GameObject that we're subscribing to then just add the message delegate
// to that GameObjects vector of MessageDelegates, once it's implemented
//return;
}
}
mEvents[i].mEventTargets.push_back(std::make_pair(inTarget, inMsgDel));
return;
}
}
// If this event is not in the list then add it
Event newEvent;
newEvent.mEventType = inEventType;
newEvent.mEventTargets = std::vector<EventPair>();
newEvent.mEventTargets.push_back(std::make_pair(inTarget, inMsgDel));
mEvents.push_back(newEvent);
}
// TODO - Redo the unsubscribe function as it is currently not working, the capacity for the event vector just keeps going up and up and up
// Loop through event list, if the delegate is null or not there then return,
// otherwise remove it from the delegate list
void EventMessenger::UnsubscribeToEvent(const uint32_t& inEventType, GameObject* inTarget, MessageDelegate inMsgDel)
{
if(inMsgDel == NULL || inTarget == NULL)
return;
for(uint32_t i = 0; i < mEvents.size(); ++i)
{
if(mEvents[i].mEventType == inEventType)
{
for(std::vector<EventPair>::iterator it = mEvents[i].mEventTargets.begin(); it != mEvents[i].mEventTargets.end(); ++it)
{
EventPair& theEventPair = *it;
if(theEventPair.first == inTarget && theEventPair.second == inMsgDel)
{
mEvents[i].mEventTargets.erase(it);
return;
}
}
// The delegate isn't here
return;
}
}
} |
8958f7512ced226e529e86ed2c9428c8ae919e52 | d2e592f6e68acd6412e9691772326da860de2d1d | /Leetcode_camp/3_third week/64_Minimum Path Sum.cpp | b0ae0e5d78864bbea243fd1474cbeddca3e8585c | [] | no_license | Ylieo816/Learning-Leetcode | 72055efe64eb1d545c4da6edecd9e72db6054ae3 | 905e9040df7d0225777631d99377c2e7edaf598c | refs/heads/master | 2023-04-09T04:31:55.627592 | 2021-04-27T05:41:39 | 2021-04-27T05:41:39 | 345,342,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | cpp | 64_Minimum Path Sum.cpp | class Solution {
public:
int minPathSum(vector<vector<int>>& grid) {
int r = grid.size(), c = grid[0].size();
// int arr[r][c];
// arr[0][0] = grid[0][0];
// for(int i=1; i<r;i++){
// arr[i][0] = arr[i-1][0] + grid[i][0];
// }
// for(int i=1; i<c;i++){
// arr[0][i] = arr[0][i-1] + grid[0][i];
// }
// for(int i=1; i<r; i++){
// for(int j=1; j<c; j++){
// arr[i][j] = min(arr[i-1][j], arr[i][j-1]) + grid[i][j];
// }
// }
// return arr[r-1][c-1];
// optimize answer
int arr[c];
arr[0] = grid[0][0];
for(int i=1; i<c;i++){
arr[i] = arr[i-1] + grid[0][i];
}
for(int i=1; i<r; i++){
arr[0] += grid[i][0];
for(int j=1; j<c; j++){
arr[j] = min(arr[j-1], arr[j]) + grid[i][j];
}
}
return arr[c-1];
}
}; |
1c3f82490dc74b9916e5662d1777baf752c21de3 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ash/printing/cups_print_job_manager_factory.h | 7c6068b90679d4d5dd2b89ad0f982605f0da0155 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 1,222 | h | cups_print_job_manager_factory.h | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_PRINTING_CUPS_PRINT_JOB_MANAGER_FACTORY_H_
#define CHROME_BROWSER_ASH_PRINTING_CUPS_PRINT_JOB_MANAGER_FACTORY_H_
#include "base/lazy_instance.h"
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
namespace content {
class BrowserContext;
}
namespace ash {
class CupsPrintJobManager;
class CupsPrintJobManagerFactory : public ProfileKeyedServiceFactory {
public:
static CupsPrintJobManagerFactory* GetInstance();
static CupsPrintJobManager* GetForBrowserContext(
content::BrowserContext* context);
CupsPrintJobManagerFactory(const CupsPrintJobManagerFactory&) = delete;
CupsPrintJobManagerFactory& operator=(const CupsPrintJobManagerFactory&) =
delete;
private:
friend struct base::LazyInstanceTraitsBase<CupsPrintJobManagerFactory>;
CupsPrintJobManagerFactory();
~CupsPrintJobManagerFactory() override;
KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const override;
};
} // namespace ash
#endif // CHROME_BROWSER_ASH_PRINTING_CUPS_PRINT_JOB_MANAGER_FACTORY_H_
|
387e0a98cd743f1471196d74e912b8f9347f205a | 508a5d228f75822747d73f1fbad0932d5332dd1a | /src/benchmark_journal.cpp | 60111c008d0e320bcf8ca317de405cbeedb8f692 | [] | no_license | lmarent/m-nslp | 83c4daaa21e9e46e189788919d6458548beb2f81 | f2ec0450d3319e8b5110dcfe478b084181548996 | refs/heads/master | 2021-01-01T17:46:54.437485 | 2015-09-04T20:46:37 | 2015-09-04T20:46:37 | 29,531,415 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,951 | cpp | benchmark_journal.cpp | /// ----------------------------------------*- mode: C++; -*--
/// @file benchmark_journal.cpp
/// The benchmark class.
/// ----------------------------------------------------------
/// $Id: benchmark_journal.cpp 2558 2014-11-08 14:35:00 amarentes $
/// $HeadURL: https://./src/benchmark_journal.cpp $
// ===========================================================
//
// Copyright (C) 2012-2014, all rights reserved by
// - System and Computing Engineering, Universidad de los Andes
//
// More information and contact:
// https://www.uniandes.edu.co/
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; version 2 of the License
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// ===========================================================
#include <fstream>
#include <cstring>
#include <pthread.h>
#include "benchmark_journal.h"
using namespace mnslp;
#ifdef BENCHMARK
benchmark_journal journal(1000000, "benchmark_journal.txt");
#endif
/**
* Human readable measuring point names, used in write_header().
*/
const char *
benchmark_journal::mp_names[benchmark_journal::HIGHEST_VALID_ID+1] = {
"INVALID_ID",
"PRE_PROCESSING",
"POST_PROCESSING",
"PRE_MAPPING",
"POST_MAPPING",
"PRE_SESSION_MANAGER",
"POST_SESSION_MANAGER",
"PRE_SERIALIZE",
"POST_SERIALIZE",
"PRE_DESERIALIZE",
"POST_DESERIALIZE",
"PRE_DISPATCHER",
"POST_DISPATCHER",
"PRE_SESSION",
"POST_SESSION"
};
/**
* Constructor to create a journal of the given size.
*
* The journal is initialized to avoid page faults during usage.
* If a filename is given (!= the empty string), the journal is written to
* that file as soon as the journal is full.
*
* @param journal_size the size of the in-memory journal
* @param filename the name of the file to write the journal to
*/
benchmark_journal::benchmark_journal(
int journal_size, const std::string &filename)
: journal_size(journal_size), journal_pos(0),
filename(filename), disable_journal(false) {
journal = new measuring_point_t[journal_size];
memset(journal, 0,
sizeof(benchmark_journal::measuring_point_t) * journal_size);
/*
* Initialize the mutex. We use a recursive mutex to make calling
* write_journal() from add() easier.
*/
pthread_mutexattr_t mutex_attr;
pthread_mutexattr_init(&mutex_attr);
pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init(&mutex, &mutex_attr);
pthread_mutexattr_destroy(&mutex_attr);
}
benchmark_journal::~benchmark_journal() {
std::cerr << "Exiting. Writing journal ..." << std::endl;
write_journal();
std::cerr << "Journal written." << std::endl;
delete journal;
pthread_mutex_destroy(&mutex);
}
/**
* Reset the journal, removing all measuring points recorded so far.
*/
void benchmark_journal::restart() {
pthread_mutex_lock(&mutex);
journal_pos = 0;
disable_journal = false;
pthread_mutex_unlock(&mutex);
}
void benchmark_journal::write_journal() {
write_journal(filename);
}
void benchmark_journal::write_journal(const std::string &filename)
{
std::ofstream out(filename.c_str());
if ( ! out ) {
std::cerr << "Error opening journal file `" + filename + "'\n";
return;
}
try {
this->write_journal(out);
}
catch ( ... ) {
std::cerr << "Error writing journal" << std::endl;
}
out.close();
}
/**
* Write the journal to the given stream.
*
* Note that the caller is responsible for closing the stream.
*/
void benchmark_journal::write_journal(std::ostream &out)
{
pthread_mutex_lock(&mutex);
write_header(out);
for ( int i = 0; i < journal_size
&& journal[i].point != INVALID_ID; i++ )
out << (int) journal[i].point << ' '
<< journal[i].thread_id << ' '
<< journal[i].timestamp.tv_sec << ' '
<< journal[i].timestamp.tv_nsec << std::endl;
pthread_mutex_unlock(&mutex);
}
/**
* Write a header to the journal documenting the measuring points.
*/
void benchmark_journal::write_header(std::ostream &out)
{
time_t t;
time(&t);
out << "# Benchmark Journal, created " << ctime(&t);
out << "# $Id: benchmark_journal.cpp 2558 2007-04-04 15:17:16Z bless $" << std::endl;
out << "# Format: <measuring point ID> <Thread ID>"
" <seconds> <nano seconds>" << std::endl;
out << "# Measuring points:" << std::endl;
for (int i = 0; i <= HIGHEST_VALID_ID; i++)
out << "# \t" << i << " " << mp_names[i] << std::endl;
out << "#" << std::endl;
}
// EOF
|
d157a4c149bd43c6ccaf876d519a7b1d14a288b0 | ac6a64d9d435f9db26b675ff4d0228eff4e9300f | /Contest_5/bai19.cpp | 9387ddd62267a7c7902653966db3041b886ccdbe | [] | no_license | HoangPham3003/CTDL-GT | ffb4fbbf797887cb78bd9b8c505e3da54146e4e6 | 0c0ab2638d46b441ee198fdc7897a19eee4fa679 | refs/heads/main | 2023-06-15T13:06:36.487041 | 2021-07-10T14:16:50 | 2021-07-10T14:16:50 | 384,712,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 420 | cpp | bai19.cpp | #include <bits/stdc++.h>
using namespace std;
int Tinh(int n, int x, int y, int z) {
int f[105] = {0};
f[1] = x;
for (int i = 2 ; i <= n ; i++) {
if (i%2 == 0) {
f[i] = min(f[i-1]+x, f[i/2]+z);
}
else {
f[i] = min(f[i-1]+x, f[(i+1)/2]+z+y);
}
}
return f[n];
}
int main() {
int t, n, x, y, z;
cin >> t;
while (t--) {
cin >> n >> x >> y >> z;
cout << Tinh(n, x, y, z) << endl;
}
return 0;
}
|
cd327598f11d903586692ddb795dcb1a7282e200 | 8bb2099503394647b1a4444c067c054edd41e6ec | /include/binary_serial.hpp | cf282330df75c1a6da329e89d75230ebf6a2db38 | [] | no_license | JonathanPlasse/TeensyTest | 4740b02868fa1a90f1e73559549270d65be67f1a | ae752dc3d4ac75ad2ee63e2d0bc32836bb73b735 | refs/heads/master | 2020-05-26T04:32:17.595984 | 2019-05-31T12:40:53 | 2019-05-31T12:40:53 | 188,107,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | hpp | binary_serial.hpp | #ifndef SERIAL_HPP
#define SERIAL_HPP
#include <Arduino.h>
// Wait until data is read
void read_data(const void* data, const size_t nb_bytes);
// Write data
void write_data(const void* data, const size_t nb_bytes);
// Read data if available
bool read_data_if(const void* data, const size_t nb_bytes);
#endif
|
1bb5a22cff90758f14d814115d763336734d3b49 | f2b92ab2f1539f3c7e01edffba4906d429c8b37c | /generated/player.grpc.pb.cc | 298713d164682d790d75f388847a1a01d80add20 | [] | no_license | nater540/UE4Proto | 69f6f3b5cc815e6c2e2d667c7cdcebe8ea5e1c1a | 1559349426f24baac45f0d2579365f1e5bb65c54 | refs/heads/master | 2020-04-15T14:47:57.208560 | 2019-01-09T02:19:43 | 2019-01-09T02:19:43 | 164,768,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 3,169 | cc | player.grpc.pb.cc | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: player.proto
#include "player.pb.h"
#include "player.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/channel_interface.h>
#include <grpcpp/impl/codegen/client_unary_call.h>
#include <grpcpp/impl/codegen/client_callback.h>
#include <grpcpp/impl/codegen/method_handler_impl.h>
#include <grpcpp/impl/codegen/rpc_service_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace ue4 {
static const char* Player_method_names[] = {
"/ue4.Player/GetLocation",
};
std::unique_ptr< Player::Stub> Player::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
(void)options;
std::unique_ptr< Player::Stub> stub(new Player::Stub(channel));
return stub;
}
Player::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
: channel_(channel), rpcmethod_GetLocation_(Player_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
{}
::grpc::Status Player::Stub::GetLocation(::grpc::ClientContext* context, const ::ue4::LocationRequest& request, ::ue4::Location* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLocation_, context, request, response);
}
void Player::Stub::experimental_async::GetLocation(::grpc::ClientContext* context, const ::ue4::LocationRequest* request, ::ue4::Location* response, std::function<void(::grpc::Status)> f) {
return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLocation_, context, request, response, std::move(f));
}
::grpc::ClientAsyncResponseReader< ::ue4::Location>* Player::Stub::AsyncGetLocationRaw(::grpc::ClientContext* context, const ::ue4::LocationRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderFactory< ::ue4::Location>::Create(channel_.get(), cq, rpcmethod_GetLocation_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::ue4::Location>* Player::Stub::PrepareAsyncGetLocationRaw(::grpc::ClientContext* context, const ::ue4::LocationRequest& request, ::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderFactory< ::ue4::Location>::Create(channel_.get(), cq, rpcmethod_GetLocation_, context, request, false);
}
Player::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod(
Player_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< Player::Service, ::ue4::LocationRequest, ::ue4::Location>(
std::mem_fn(&Player::Service::GetLocation), this)));
}
Player::Service::~Service() {
}
::grpc::Status Player::Service::GetLocation(::grpc::ServerContext* context, const ::ue4::LocationRequest* request, ::ue4::Location* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
} // namespace ue4
|
54f774c8574b6c2250bf8bf7b5008d7ac710fe5d | 5f1c66e98c944b830169d28fb8046a4fbe1253dc | /arducub2/basic3d.h | 8c6d7d7f62356c49ba3d35a10789f99db39f7a89 | [] | no_license | Joan10/arducub | 6179b68f9a7577f08f32cfc8ca323268b097d9e3 | 85459e96badc6dad9b4d855935bdcf3c99127139 | refs/heads/master | 2020-05-18T17:51:10.070926 | 2013-01-29T18:08:16 | 2013-01-29T18:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | h | basic3d.h |
#ifndef __basic3d__
#define __basic3d__
#include <Arduino.h>
#include "lcd/tft.h"
#include <math.h>
//#define MAX_POLYGONS 20
#define MAX_VERTICES 20
#define MAX_ARESTA 20
typedef struct {
int x,y,z;
} t_vertex, t_vector;
typedef struct {
char t1, t2; //punters a dos vèrtexs del vector cjt_vertex
} t_aresta;
class Objecte3d {
public:
void Crea(t_vertex *l_vertexs, t_aresta *l_aresta, int v, int a); //llista de vèrtexs i número de vèrtexs
void Pinta(int color);
void Mou(int x, int y, int z); //dx,dy vectors directors. a magnitud
void Rota(int ax, int ay, int az);
void treuPosicio(int *x, int *y, int *z);
void CanviaMida(int s); //s > 0 mes gran, s<0 mes petit
private:
t_vertex cjt_vertex[MAX_VERTICES];
t_aresta cjt_aresta[MAX_ARESTA];
t_vertex cjt_vertex_o[MAX_VERTICES]; //cjt de vèrtexs originals sense rotar, per evitar acumular molt d'error.
int nv,na; //Número de vèrtexs, n arestes
t_vertex c; //centre de l'objecte
};
#endif
|
24089eaf8697ac9d9f39c665e6b955d7c23c4f5e | a6dadfc9b90c01d659a92bd213e48e6e999fc7b5 | /CaltechApp/src/VecbosBaseObject.cc | d07a01f0b2644d3ed73a3dc6dacf2b6dca0accb9 | [] | no_license | amott/UserCode | d0dc764e2eed39a31007c3e5f807b547d80a2bf5 | 5a1ee17ff04efa599bc94bcd8387eb4bacebab81 | refs/heads/master | 2020-04-16T13:30:37.284636 | 2013-07-02T00:05:00 | 2013-07-02T00:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cc | VecbosBaseObject.cc | #include "VecbosBaseObject.hh"
VecbosBaseObject::VecbosBaseObject()
{
index = -1;
energy = 0.0001;
pt = 0.0001;
eta = 0.;
phi = 0.;
charge = 0;
}
TLorentzVector VecbosBaseObject::getP4(){
TLorentzVector p4; p4.SetPtEtaPhiE(pt,eta,phi,energy);
return p4;
}
|
287f175c7abd15d63dbdaec82dc9fd929619d074 | 8366c3b42d32a31074d57982f6141369d46630b2 | /exercise/boolean.cc | 6c0906eacdbdcb274fa3924079cece799192ec13 | [] | no_license | sun51027/LocalWork | 921bc45f004673bc12c56a3c8313e35aa27d5417 | 65769e366b6e41440eaaa6418a80d5315a7325f0 | refs/heads/master | 2023-05-15T00:41:13.931300 | 2021-06-09T06:42:52 | 2021-06-09T06:42:52 | 276,367,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 511 | cc | boolean.cc | #include<iostream>
#include<vector>
#include<string>
using namespace std;
void DoBool(bool trg){
cout<<"Hi"<<endl;
}
int main(){
vector<string> test;
test.push_back("Apple");
test.push_back("Bee");
test.push_back("Cat");
test.push_back("Duck");
test.push_back("Errr");
/* for(int i=0;i<5;i++){
cout<<test[i]<<endl;
}
*/ //bool name;
if(DoBool)
for(int i=0;i<5;i++){
cout<<test[i]<<endl;
}
if(name==test[1])
cout<<"Bee = "<<test[1]<<endl;
else cout<<"not found"<<endl;
}
|
043193e0831da0822584c14f1de2a9ef1f02a6e7 | f26e8f4b2ae381ee8e767fc4f9dbcb4576e51167 | /pagespeed/kernel/base/md5_hasher_test.cc | 6d589f73c9fe7e86a5f7553d3e393e28648edd13 | [
"Apache-2.0"
] | permissive | webscale-networks/mod_pagespeed | 8c9e82d67224de65acb077e326f3d9a1c2178ddb | cd7a7ac54a14475dd08de768ae2355e6233d30eb | refs/heads/webscale-v1.13.35.2 | 2021-10-07T17:57:12.603386 | 2021-10-05T22:30:13 | 2021-10-05T22:30:13 | 84,251,365 | 0 | 0 | Apache-2.0 | 2021-10-05T22:30:15 | 2017-03-07T22:12:31 | C++ | UTF-8 | C++ | false | false | 1,640 | cc | md5_hasher_test.cc | // Copyright 2010 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Authors: sligocki@google.com (Shawn Ligocki),
#include "pagespeed/kernel/base/md5_hasher.h"
#include "pagespeed/kernel/base/gtest.h"
#include "pagespeed/kernel/base/string.h"
namespace net_instaweb {
namespace {
// See http://goto/gunitprimer for an introduction to gUnit.
class MD5HasherTest : public ::testing::Test {};
TEST_F(MD5HasherTest, CorrectHashSize) {
// MD5 is 128-bit, which is 21.333 6-bit chars.
const int kMaxHashSize = 21;
for (int i = kMaxHashSize; i >= 0; --i) {
MD5Hasher hasher(i);
EXPECT_EQ(i, hasher.HashSizeInChars());
EXPECT_EQ(i, hasher.Hash("foobar").size());
// Large string.
EXPECT_EQ(i, hasher.Hash(GoogleString(5000, 'z')).size());
}
}
TEST_F(MD5HasherTest, HashesDiffer) {
MD5Hasher hasher;
// Basic sanity tests. More thorough tests belong in the base implementation.
EXPECT_NE(hasher.Hash("foo"), hasher.Hash("bar"));
EXPECT_NE(hasher.Hash(GoogleString(5000, 'z')),
hasher.Hash(GoogleString(5001, 'z')));
}
} // namespace
} // namespace net_instaweb
|
c9f2b35b39a1c65080f1d99f53dd160ea47fb3ff | daca562f86166ea155d5ec16d29a4549518fe32d | /instrucion_element.cpp | 519e109ca9ca290f074bad7ab34d98088ff2f205 | [] | no_license | sistemd/simple-calculator | ca99a836612841339db940cab9427368ebb76af6 | 074936893f1db25599e2966ba6c6ebebcd5b3447 | refs/heads/master | 2023-04-08T06:18:53.798092 | 2016-11-07T17:03:44 | 2016-11-07T17:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | instrucion_element.cpp | #include "instruction_element.h"
#include <sstream>
#include <cmath>
#include <iostream>
namespace Calc
{
ArithmeticType Powers::operator()(ArithmeticType left,
ArithmeticType right) noexcept
{
return std::pow(left, right);
}
ArithmeticType ToArithmetic(const std::string& str)
{
ArithmeticType result { };
std::stringstream stream { str };
stream >> result;
return result;
}
Operand::Operand(ArithmeticType value) noexcept
: m_value { value }
{
}
ArithmeticType Operand::Result() const
{
return m_value;
}
TreeElementPtr Operand::Clone() const
{
return std::make_unique<Operand>(m_value);
}
Operation::Operation(const OperatorFunction& f,
TreeElementPtr left,
TreeElementPtr right) noexcept
: m_f { f }
, m_left { std::move(left) }
, m_right { std::move(right) }
{
}
ArithmeticType Operation::Result() const
{
return m_f(m_left->Result(), m_right->Result());
}
TreeElementPtr Operation::Clone() const
{
return std::make_unique<Operation>(m_f,
m_left->Clone(),
m_right->Clone());
}
}
|
c9029500585216440ce30d5b37d85eadb0d9acf6 | 008ac7f4cf1d3b0ca81fd08286bc88298f993db5 | /src/CrazyTown/CrazyTown.ino | cbbdf9c1d599dbbb4c42dd8a8a91c84da4b89285 | [] | no_license | Clement83/CrazyTownMeta | 8464097e6462b553f40d073c39f9263029713c73 | 381a0c27b1fa232cb8bce0399fcbdd37870d5379 | refs/heads/master | 2021-04-03T08:05:22.511587 | 2018-03-13T11:56:54 | 2018-03-13T11:56:54 | 125,044,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,503 | ino | CrazyTown.ino | /*******
* 2014
* By clement http://quintard.me
* thx to Quirby64 for taxi graphic
*********/
#include <Gamebuino-Meta.h>
#define LCDHEIGHT 80
#define LCDWIDTH 64
extern const byte font3x3[];
extern const byte font3x5[];
extern const byte font5x7[];
void displayText(String s, byte x, byte y, byte t);
void displayText(String s, byte x, byte y);
void displayInt(long l, byte Tx, byte Ty, byte fig);
void displayInt(long l, byte fig);
void initTime(int tempMax);
void drawBitmapAngle(int8_t x, int8_t y, const uint8_t *bitmap,float angle);
typedef struct {
float x, y, v, vx, vy, angle;
byte radius;
} Ufo;
Ufo player;
//destination du client
int xDest;
int yDest;
int numClient = -1;
unsigned int time = 0;
unsigned int timeleft = 0;
unsigned int leScoreTotal = 0;
unsigned int nbClient = 0;
float distTotal = 0;//total du run
float distNext = 0;//distance a vol d'oiseau du prochain client
float distClient = 0;//distance reelement parcouru pour aller au client
boolean countingTime = false;
//global variables
int camera_x, camera_y;
void setup()
{
gb.begin();
gb.display.setFont(font5x7);
initHighscore();
//drawTitleScreen();
xDest = 1000;
yDest = 1000;
}
const uint16_t GrandTaxiData1[] = {19,9,1, 1, 0, 0, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffff,0x0,0xd8e4,0x0,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0x0,0xf720,0xd8e4,0x0,0xffff,0xffff,0x0,0x0,0xffff,0x0,0x0,0xffff,0x0,0x0,0xffff,0x7ddf,0xffff,0x0,0x0,0xf720,0xf720,0x0,0xffff,0xffff,0x0,0x7ddf,0x7ddf,0x0,0xffff,0xffff,0xfd42,0xffff,0xffff,0x7ddf,0x7ddf,0x0,0xffff,0xffff,0x0,0x0,0x0,0xffff,0xffff,0x0,0x7ddf,0x7ddf,0x0,0xffff,0xffff,0xfd42,0xffff,0xffff,0x7ddf,0x7ddf,0x0,0xffff,0xffff,0x0,0xffff,0x0,0xffff,0xffff,0x0,0x7ddf,0x7ddf,0x0,0xffff,0xffff,0xfd42,0xffff,0xffff,0x7ddf,0x7ddf,0x0,0xffff,0xffff,0x0,0x0,0xd8e4,0x0,0xffff,0xffff,0x0,0x0,0xffff,0x0,0x0,0xffff,0x0,0x0,0xffff,0x7ddf,0xffff,0x0,0x0,0xf720,0xf720,0xd8e4,0x0,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0x0,0xf720,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffff,0x0};
Image GrandTaxi1 = Image(GrandTaxiData1);
void loop(){
drawMenu();
}
void initGame(int tempMax){
initPlayer();
distTotal = 0;
distNext = 0;
distClient = 0;
nbClient = 0;
leScoreTotal = 0;
initTime(tempMax);
gb.display.setFont(font3x5);
}
void play(){
while(true) {
if(gb.update()){
gb.display.clear();
//pause the game if C is pressed
if(gb.buttons.pressed(BUTTON_C)){
gb.display.setFont(font5x7);
break;
}
if(timeleft == 0)
{
GameOverScreen();
return;
}
updatePlayer();
updateTime();
updateClient();
//drawWorld();
drawPlayer();
//DrawClient();
//drawHud();
}
}
}
//101 starship function
void displayText(String s, byte x, byte y){
gb.display.cursorX = x;
gb.display.cursorY = y;
gb.display.print(s);
}
void displayInt(long l, byte Tx, byte Ty, byte fig){
gb.display.fontSize = 1;
String sl = String(l);
while(sl.length() < fig){
sl = "0" + sl;
}
gb.display.cursorX = Tx;
gb.display.cursorY = Ty;
gb.display.print(sl);
}
void displayInt(long l, byte fig){
gb.display.fontSize = 1;
String sl = String(l);
while(sl.length() < fig){
sl = "0" + sl;
}
gb.display.print(sl);
}
|
e274eb0230f149b17e9b4521eda8e39546cca1f1 | e9a0b7794f3c8e90fc7b66ce7998803c295d1969 | /SFML Pathfinding/SFML Pathfinding/Source.cpp | 7ad15fe0876a6abd93b4edb1cab9b3b886ae55f0 | [] | no_license | puremight01/SFML-Pathfinding | e84c1e7538d1a8a09632b8cc59c8190f8d43576c | 50c5ca74b20d884f159be7f89b7d4a0c3eff5dba | refs/heads/main | 2023-06-29T13:02:50.386438 | 2021-08-09T12:40:29 | 2021-08-09T12:40:29 | 375,208,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | cpp | Source.cpp | //hpp includes
#include <SFML/Graphics.hpp>
//class includes
#include"Externs.h"
GameManager* Game = nullptr;
int main()
{
srand(time(NULL));
//creates our window
sf::RenderWindow window(sf::VideoMode(1280, 720, 32), "Jacob Sullvan AI Behaviours");
Game = new GameManager(&window);
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
//Clears he double buffered frame
window.clear();
//updates the objects
Game->Update();
//draws the objects
Game->Draw();
//Displays the double buffered frame
window.display();
std::cout << "S" << S << std::endl;
std::cout << "s" << s << std::endl;
std::cout << "A" << A << std::endl;
std::cout << "a" << a << std::endl;
std::cout << "C" << C << std::endl;
std::cout << "c" << c << std::endl << std::endl;
}
return 0;
} |
3c23d63006d31f56f42adc1294dfd3bee5764efa | b5ba0374a55c9efe5e02c5ef6bd0a8a0babf257b | /mylibC/public/include/mylibC.h | c17250b526d6bcbd6c07669fa9edef2f159d4f38 | [
"Unlicense"
] | permissive | olekhov/cmake_test | 75998344e21df06fba8194a2a522ea027d6468d9 | 2d4123f45945ca27937d8f40cb9ce6f176b9ff78 | refs/heads/master | 2020-03-28T16:23:40.106874 | 2018-09-13T19:56:00 | 2018-09-13T19:56:00 | 148,690,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | h | mylibC.h | #pragma once
namespace mylibC
{
class ClassC
{
public:
virtual void Do();
};
};
|
812b3ea83996ef0b4dc719732f81b9200f3f2504 | 3684da5bef9a7fea18db8df51a1cc670b4a14474 | /process_thread/threadAsync/防多开.cpp | b37210ff4d767067c00cc00638d44fd156b27417 | [] | no_license | wellzhen/code_practice | 452cd1186dfe1d794e22e10a328ae2959b8fa278 | 0e1e797e5b64d473f0c6e77eee3da9e165a05c02 | refs/heads/master | 2020-03-10T03:40:15.114829 | 2018-07-29T13:43:59 | 2018-07-29T13:43:59 | 129,171,223 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 460 | cpp | 防多开.cpp | #include "stdafx.h"
#include <Windows.h>
HANDLE hEvent;
int i = 0;
int _tmain(int argc, _TCHAR* argv[])
{
HANDLE hOldEvent;
hOldEvent = OpenEvent(EVENT_ALL_ACCESS, NULL, L"events"); //必须要设置参数1 !!?
if (hOldEvent != 0) {
printf("进程已经存在\n");
Sleep(3000);
return 0;
}
else {
hEvent = CreateEvent(NULL, false, true, L"events");
}
while (true)
{
printf("%d 运行中...", i);
i++;
Sleep(10000);
}
return 0;
} |
363970da1e63da4ecf1b9e14433f89e2e50be2ea | 04db79713aad7e985151f3d39626adda940498db | /palm/fine/batree.h | aae00b2413fa3578a7963aa334f5353565241370 | [] | no_license | yinizhizhu/Graduation | 17ab6847787a0370c0a204f77b7bcd1d5f9b8374 | 89cc7df975e38bfabbcf4e6347f0331bd677f0b3 | refs/heads/master | 2021-06-19T14:15:35.188708 | 2017-06-26T17:41:44 | 2017-06-26T17:41:44 | 85,665,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,907 | h | batree.h | #pragma once
#ifndef BATREE_H
#define BATREE_H
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stack>
#include <mutex>
#include <vector>
#include <stack>
#include <thread>
#include <random>
#include <fstream>
#include <utility>
#include <string>
#include <iostream>
#include <algorithm>
#include <functional>
#include <unordered_map>
#include <condition_variable>
#include "clk.h"
using namespace std;
//#define SYNC
//#define TESTBTT
//#define DEBUG_
#define DEGREE 3
#define MIN_DEGREE DEGREE - 1
#define MAX_DEGREE 2 * DEGREE - 1
#define TEST_NUM 99
#define EACH_NUM 9
#define THREAD_NUM 4
#define TREE_FILE_NAME "bplus.txt"
#define SYNCHRONIZING_MUTEX_NAME "__PALM_MUTEX__"
#define QUERY_FILE_NAME "query.txt"
#define QRESULT_FILE_NAME "queryResult.txt"
#define INFO_FILE_NAME "info.txt"
#define IRESULT_FILE_NAME "infoResult.txt"
typedef unsigned int INDEX;
template<typename keyType>
class batree {
private:
enum STEP_TYPE { //enumerate the type of each operation
FIN_STEP, //find
INS_STEP, //insert
DEL_STEP, //delete
UPD_STEP, //update
SPL_STEP, //split
MER_STEP //merge
};
friend ofstream& operator<<(ofstream& os, const STEP_TYPE& a) {
if (a == FIN_STEP) os << "fin";
else if (a == INS_STEP) os << "ins";
else if (a == DEL_STEP) os << "del";
else if (a == UPD_STEP) os << "upd";
else os << "mer";
return os;
}
typedef struct node {
bool leaf; //true while current node is leaf node, false for inner node
int key_n; //the number of the key
mutex curLock; //lock the current node
keyType key[MAX_DEGREE]; //store the key
node* parent;
node* child[MAX_DEGREE + 1]; //store the pointer of child
node(node* p = NULL, int k_n = 0, bool l = false) {
parent = p;
for (int i = MAX_DEGREE; i >= 0; i--)
child[i] = NULL;
leaf = l;
key_n = k_n;
}
int getN() { return key_n; }
int getI() {
if (parent) {
node** pc = parent->child;
int i = 0;
for (;; i++) {
if (pc[i] == this)
return i;
}
}
return 0;
}
bool getL() { return leaf; }
keyType getK(int i) { return key[i]; }
node* getC(int i) { return child[i]; }
node* getP() { return parent; }
void setN(int n) { key_n = n; }
void setL(bool b) { leaf = b; }
void setK(int i, int n) { key[i] = n; }
void setC(int i, node* t) { child[i] = t; }
void setP(node* t) { parent = t; }
void show() {
for (int i = 0; i < key_n; i++)
cout << key[i] << " ";
}
} NODE, *PNODE;
friend ofstream& operator<<(ofstream& os, const PNODE& a) {
os << "0x" << a << " ";
if (a) {
int i, n = a->key_n;
for (i = 0; i < n; i++)
os << a->key[i] << " ";
}
return os;
}
PNODE root;
typedef struct query {
STEP_TYPE type; //find, add, del
keyType key;
bool ans; //store the result of searching
PNODE cur;
query(STEP_TYPE t, keyType k) : type(t), key(k), ans(false), cur(NULL) {}
keyType getK() { return key; }
PNODE getC() { return cur; }
void setA(bool a) { ans = a; }
void setC(PNODE c) { cur = c; }
PNODE lock() {
//cout << "In lock\n";
if (cur) {
//cout << "\ts: ";
//cur->show();
//cout << endl;
cur->curLock.lock();
}
else
cout << "Something is worng!!!\n";
//cout << "Out lock!!!\n";
return cur;
}
void show() {
if (type == INS_STEP)
cout << "ins\t";
else if (type == DEL_STEP)
cout << "del\t";
else cout << "fin\t";
cout << key << ":";
}
} QUERY, *PQUERY;
friend ofstream& operator<<(ofstream& os, const QUERY& a) {
//if (a.type == INS_STEP)
// os << "ins\t";
//else if (a.type == DEL_STEP)
// os << "del\t";
//else os << "fin\t";
os << a.type << "\t" << a.key << "\t";
if (a.type == FIN_STEP || a.type == DEL_STEP)
if (a.ans) os << "Y";
else
if (!a.ans) os << "Y";
return os;
}
vector< vector<QUERY> > queries; //store the queries
#ifdef SYNC
stack<QUERY> container;
#endif
vector<thread> threads; //store the threads
//typedef pair<PNODE, int> site;
my_clock clk;
double costT;
int variable;
char treeFileName[30];
public:
batree(int v);
~batree();
void getTree();
void fastRandom();
void outputQuery(char* fileName); //output the query into file
void* findLeaf(PNODE r, keyType k);
void search(int x, int y); //search k in root
#ifdef SYNC
void searchSync(QUERY& tmp);
#endif
void split(stack<PNODE>& path, PNODE x, int i); //split the child whose index is i of node x
void* splitPath(PNODE r, keyType k);
void insert(int x, int y); //insert the k into root
#ifdef SYNC
void insertSync(QUERY& tmp);
#endif
bool company(stack<PNODE>& path, PNODE& r, PNODE& ans);
void getNode(PNODE r, PNODE& ans, bool& tag, keyType k);
void getPath(stack<PNODE>& path, PNODE r, PNODE& ans, bool& tag, keyType k);
void doIt(stack<PNODE>& path, PNODE& r, PNODE& tmp, PNODE ans);
void merge(stack<PNODE>& path, PNODE x, int i, PNODE y, PNODE z); //merge node y, key i and node z, x is the parent of y and z
void* mergePath(PNODE r, keyType k, int x, int y);
void del(int x, int y); //delete the k from root
void delSet(keyType k, keyType v, int x, int y); //revalue the index while the head is changed
#ifdef SYNC
void* mergePathSync(PNODE r, keyType k, QUERY& tmp);
void delSync(QUERY& tmp); //delete the k from root
void delSetSync(keyType k, keyType v, QUERY& tmp);
#endif
void shiftRTL(PNODE x, int i, PNODE y, PNODE z); //x's right child y borrows a key and a child from x's left child of z
void shiftLTR(PNODE x, int i, PNODE y, PNODE z); //...
void doShow(ofstream& out, PNODE root, int d);
void show(int y=-1); //API for showing the btrees
void show(int x, int y); //API for showing the btrees
void testParent(keyType n); //test the parent
void doClear(PNODE root);
void clear(); //API for free the sources we apply
};
#endif
|
7be32e04b23e69c3d46853cfa8feaa7c5511f329 | 5a40adffc0d0c274de29c633655a28651f444786 | /app/shell/shell.cpp | 0321769ddf66f4803c56835365751f6be639dd34 | [
"MIT"
] | permissive | USN484259/COFUOS | 5eae8e002737b1d3547f6f0d5857ae81373238f3 | c8341ec035c7a37136b7bd87ac9a0ddafa392139 | refs/heads/master | 2022-01-21T18:25:14.030107 | 2022-01-15T10:33:12 | 2022-01-15T10:33:12 | 185,993,672 | 3 | 2 | null | 2020-12-06T09:11:32 | 2019-05-10T13:31:56 | C++ | UTF-8 | C++ | false | false | 12,959 | cpp | shell.cpp | #include "shell.hpp"
#include "cui.hpp"
#include "font.hpp"
using namespace UOS;
enum {CAPSLOCK = 0,CTRL = 1,ALT = 2,SHIFT = 3,SUPER = 4};
//static constexpr word border_size = 2;
word resolution[2] = {0};
bool key_state[5] = {0};
byte active_index = 0;
word clock_pos = 0;
back_buffer* back_buf = nullptr;
label* wall_clock = nullptr;
label* status_bar = nullptr;
terminal* term[12] = {0};
back_buffer::back_buffer(word w,word h) : \
width(w), height(h), \
line_size(align_up(w,0x10)), \
line_count(align_up(h + sys_fnt.line_height()*4,0x10)), \
buffer((dword*)operator new(sizeof(dword)*line_size*line_count)) {}
back_buffer::~back_buffer(void){
operator delete(buffer,sizeof(dword)*line_size*line_count);
}
work_dir::work_dir(void){
limit = 16;
buffer = (char*)operator new(limit);
buffer[0] = '/';
buffer[1] = 0;
count = 1;
}
bool work_dir::set(const char* path,dword len){
set_work_dir(buffer,count);
if (SUCCESS != set_work_dir(path,len))
return false;
auto sz = limit - 1;
switch(get_work_dir(buffer,&sz)){
case SUCCESS:
count = sz;
buffer[count] = 0;
return true;
case TOO_SMALL:
break;
default:
return false;
}
operator delete(buffer,limit);
limit = UOS::align_up(sz + 1,0x10);
buffer = (char*)operator new(limit);
sz = limit - 1;
if (SUCCESS != get_work_dir(buffer,&sz)){
buffer[0] = 0;
return false;
}
count = sz;
buffer[count] = 0;
return true;
}
terminal::terminal(back_buffer& buf,const char* msg) : buffer(buf), \
cui(buf.width,buf.height,buf.buffer,buf.line_size,buf.line_count)
{
dword res;
res = create_object(OBJ_SEMAPHORE,1,0,&lock);
assert(SUCCESS == res);
res = create_object(OBJ_EVENT,0,0,&barrier);
assert(SUCCESS == res);
res = create_object(OBJ_PIPE,0x100,0,&out_pipe);
assert(SUCCESS == res);
res = create_object(OBJ_PIPE,0x100,1,&in_pipe);
assert(SUCCESS == res);
cui.set_focus(true);
begin_paint();
if (msg)
print(msg);
show_shell();
end_paint();
HANDLE th = get_thread();
auto priority = get_priority(th);
close_handle(th);
res = create_thread(thread_reader,this,0,&th);
assert(SUCCESS == res);
set_priority(th,priority - 1);
close_handle(th);
res = create_thread(thread_monitor,this,0,&th);
assert(SUCCESS == res);
close_handle(th);
}
void terminal::thread_reader(void*,void* ptr){
auto self = (terminal*)ptr;
while(true){
char buffer[0x40];
dword size = sizeof(buffer);
dword res;
res = stream_read(self->out_pipe,buffer,&size);
assert(0 == res);
if (size == 0){
res = wait_for(self->out_pipe,0,0);
assert(NOTIFY == res || PASSED == res);
res = stream_state(self->out_pipe,&size);
assert(0 == res);
if (size == 0)
continue;
}
self->begin_paint();
for (dword i = 0;i < size;++i){
self->cui.put(buffer[i]);
}
self->end_paint();
}
}
void terminal::thread_monitor(void*,void* ptr){
auto self = (terminal*)ptr;
while(true){
dword res;
res = wait_for(self->barrier,0,0);
assert(NOTIFY == res || PASSED == res);
//fprintf(stderr,"monitoring %x",self->ps);
res = wait_for(self->ps,0,0);
if (NOTIFY == res || PASSED == res){
sleep(0);
self->begin_paint();
//dword id = process_id(self->ps);
//dword exit_code = 0;
//bool stopped = (SUCCESS == process_result(self->ps,&exit_code));
//fprintf(stderr,"process %u exited with 0%c%x",id,stopped ? 'x' : '?',exit_code);
close_handle(self->ps);
self->ps = 0;
if (self->in_pipe_dirty){
close_handle(self->in_pipe);
res = create_object(OBJ_PIPE,0x100,1,&self->in_pipe); //owner_write
assert(SUCCESS == res);
self->in_pipe_dirty = false;
}
self->show_shell();
self->end_paint();
}
}
}
void terminal::show_help(void){
print("Press CTRL + F1 - F12 to switch terminal\n");
print("Use 'su' prefix to grant higher privilege\n");
print("Use 'bg' prefix to run command in background\n");
print("\nShell interal commands:\n");
print("help\t\tShow this help\n");
print("cd (path)\tChange directory\n");
print("clear\t\tClear screen\n");
print("halt\t\tShutdown system\n");
print("set_rw [-force]\tAllow disk write\n");
print("break\t\tTrigger debugger break\n");
print("\nBasic commands:\n");
print("info\tShow system information\n");
print("echo\tEcho back characters\n");
print("ls\tList elements in directory\n");
print("cat\tConcatenate files\n");
print("pwd\tShow working directory\n");
print("ps\tProcess list or detail\n");
print("kill\tTerminate process\n");
print("date\tShow date and time\n");
print("file\tOpen and operate on files\n");
print("prime\tCalculate prime numbers\n");
}
void terminal::dispatch(void){
char buffer[0x100];
dword size = cui.get(buffer,sizeof(buffer) - 1);
cui.put('\n');
buffer[size] = 0;
if (ps){
buffer[size++] = '\n';
dword res = stream_write(in_pipe,buffer,&size);
assert(0 == res);
in_pipe_dirty = true;
return;
}
do{
bool su = false;
bool bg = false;
auto cmd = buffer;
auto tail = cmd + size;
auto pos = tail;
//parse modifier
while(cmd != tail){
pos = find_first_of(cmd,tail,' ');
if (pos == cmd){
++cmd;
continue;
}
size = pos - cmd;
if (size != 2)
break;
if (2 == match(cmd,"su",2,equal_to<char>())){
su = true;
cmd = pos;
continue;
}
if (2 == match(cmd,"bg",2,equal_to<char>())){
bg = true;
cmd = pos;
continue;
}
break;
}
if (cmd == tail)
break;
if (size == 2 && match<const char*>(cmd,"cd",2,equal_to<char>()) == 2){
cmd += 2;
while(cmd != tail){
if (*cmd != ' ')
break;
++cmd;
}
if (cmd != tail && !wd.set(cmd,tail - cmd)){
print("No such directory");
}
break;
}
if (size == 6 && match<const char*>(cmd,"set_rw",6,equal_to<char>()) == 6){
cmd += 6;
pos = find_first_of(cmd,tail,'-');
size = tail - pos;
bool force = (size == 6 && match<const char*>(pos,"-force",6,equal_to<char>()) == 6);
if (SUCCESS == osctl(set_rw,force ? cmd : nullptr,&size)){
print("Disk now writable");
}
else{
print("Failed setting writable");
}
break;
}
if (size == 5 && match<const char*>(cmd,"clear",5,equal_to<char>()) == 5){
cui.clear();
break;
}
if (size == 4 && match<const char*>(cmd,"help",4,equal_to<char>()) == 4){
show_help();
break;
}
if (size == 6 && match<const char*>(cmd,"reload",6,equal_to<char>()) == 6){
cui.set_focus(false);
cui.set_focus(true);
break;
}
if (size == 4 && match<const char*>(cmd,"halt",4,equal_to<char>()) == 4){
osctl(halt,nullptr,&size);
abort();
}
if (size == 5 && match<const char*>(cmd,"abort",5,equal_to<char>()) == 5){
abort();
}
if (size == 5 && match<const char*>(cmd,"break",5,equal_to<char>()) == 5){
osctl(dbgbreak,nullptr,&size);
break;
}
STARTUP_INFO info = {0};
info.commandline = cmd;
info.cmd_length = tail - cmd;
info.work_dir = wd.get();
info.wd_length = wd.size();
info.flags = su ? SHELL : NORMAL;
info.std_handle[0] = bg ? 0 : in_pipe;
info.std_handle[1] = out_pipe;
info.std_handle[2] = out_pipe;
HANDLE hps = 0;
assert(ps == 0);
if (SUCCESS == create_process(&info,sizeof(STARTUP_INFO),&hps)){
if (!bg){
ps = hps;
signal(barrier,1);
return;
}
else{
close_handle(hps);
sleep(0);
break;
}
}
if (size){
cmd[size] = 0;
print("command \'");
print(cmd);
print("\' not found");
}
}while(false);
show_shell();
}
void terminal::begin_paint(void){
//fprintf(stderr,"begin_paint");
auto res = wait_for(lock,0,0);
assert(NOTIFY == res || PASSED == res);
//fprintf(stderr,"painting");
}
void terminal::end_paint(void){
cui.render(0,0);
auto res = signal(lock,0);
assert(res < FAILED);
//fprintf(stderr,"end_paint");
}
void terminal::print(const char* str){
assert(0 == wait_for(lock,0,1));
while(*str){
cui.put(*str++);
}
}
void terminal::show_shell(void){
if (!cui.is_newline())
cui.put('\n');
print(wd.get());
print(" $ ");
}
void terminal::put(char ch){
if (ch == 0x08) //backspace
cui.back();
else{
if (ch == 0x0A) //enter
dispatch();
else if (ch != '\t')
cui.put(ch,true);
}
}
char parse(byte key){
if (key_state[CTRL] || key_state[ALT] || key_state[SUPER])
return 0;
if (isspace(key))
return key;
switch(key){
case 0x08: //backspace
case 0x1B: //esc
case 0x7F: //del
return key;
}
if (isupper(key)){
return key | (key_state[SHIFT] == key_state[CAPSLOCK] ? 0x20 : 0);
}
if (isdigit(key)){
static const char* const sh_num = ")!@#$%^&*(";
return key_state[SHIFT] ? sh_num[key - '0'] : key;
}
switch(key){
case '`':
case ',':
case '.':
case '/':
case ';':
case '\'':
case '[':
case ']':
case '\\':
case '-':
case '=':
break;
default:
return 0;
}
if (!key_state[SHIFT])
return key;
switch(key){
case '`':
return '~';
case ',':
return '<';
case '.':
return '>';
case '/':
return '?';
case ';':
return ':';
case '\'':
return '\"';
case '[':
return '{';
case ']':
return '}';
case '\\':
return '|';
case '-':
return '_';
case '=':
return '+';
}
return 0;
}
static constexpr int GMT_OFFSET = (+8);
void update_clock(void){
qword time = get_time() + 3600*GMT_OFFSET;
word element[3];
time %= 86400;
element[0] = time / 3600;
time %= 3600;
element[1] = time / 60;
element[2] = time % 60;
if (clock_pos){
rectangle rect{clock_pos,resolution[1] - sys_fnt.line_height(),resolution[0],resolution[1]};
display_fill(0,&rect);
}
wall_clock->clear();
for (auto i = 0;i < 3;++i){
if (i)
wall_clock->put(':');
wall_clock->put('0' + element[i]/10);
wall_clock->put('0' + element[i]%10);
}
clock_pos = resolution[0] - 8 - wall_clock->length();
wall_clock->render(clock_pos,resolution[1] - sys_fnt.line_height());
}
void update_status(void){
auto prev_len = status_bar->length();
status_bar->clear();
status_bar->put("Terminal ");
auto number = active_index + 1;
status_bar->put('0' + number/10);
status_bar->put('0' + number%10);
char str[0x40];
OS_INFO info;
dword sz = sizeof(info);
if (SUCCESS == os_info(&info,&sz)){
char total_unit = (info.total_memory > 0x100000) ? 'M' : 'K';
unsigned total_divider = (total_unit == 'M') ? 0x100000 : 0x400;
char used_unit = (info.used_memory > 0x100000) ? 'M' : 'K';
unsigned used_divider = (used_unit == 'M') ? 0x100000 : 0x400;
sz = 1 + snprintf(str,sizeof(str),\
"\t%u Tasks Mem %llu%c/%llu%c",\
(info.process_count >= 2) ? (info.process_count - 2) : 0,\
info.used_memory/used_divider, used_unit,\
info.total_memory/total_divider, total_unit
);
status_bar->put(str);
}
auto cur_len = status_bar->length();
if (cur_len < prev_len){
rectangle rect{cur_len,resolution[1] - sys_fnt.line_height(),prev_len,resolution[1]};
display_fill(0,&rect);
}
status_bar->render(0,resolution[1] - sys_fnt.line_height());
}
int main(int argc,char** argv){
fprintf(stderr,"%s\n",argv[0]);
{
OS_INFO info;
dword len = sizeof(info);
if (SUCCESS != os_info(&info,&len))
return -1;
resolution[0] = info.resolution_x;
resolution[1] = info.resolution_y;
back_buf = new back_buffer(resolution[0],resolution[1] - sys_fnt.line_height());
wall_clock = new label(8*sys_fnt.max_width());
status_bar = new label(resolution[0] / 4 * 3);
term[0] = new terminal(*back_buf);
}
while(true){
byte buffer[0x10];
dword size = 0x10;
dword res;
res = stream_read(STDIN,buffer,&size);
assert(0 == res);
if (size == 0){
res = wait_for(STDIN,0,0);
assert(NOTIFY == res || PASSED == res);
res = stream_state(STDIN,&size);
assert(0 == res);
if (size == 0)
continue;
}
bool painting = false;
for (unsigned i = 0;i < size;++i){
auto key = buffer[i] & 0x7F;
bool pressed = (0 == (buffer[i] & 0x80));
if (key == 0x40){
update_status();
update_clock();
continue;
}
switch(key){
case 0x21:
case 0x22:
case 0x23:
case 0x24:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
key_state[key & 0x0F] = pressed;
continue;
}
if (key == 0x1A && pressed){
key_state[CAPSLOCK] = ! key_state[CAPSLOCK];
continue;
}
if (pressed){
if (key_state[CTRL] && key >= 0x61 && key <= 0x6C){
// F1 .. F12
term[active_index]->set_focus(false);
if (painting){
term[active_index]->end_paint();
}
active_index = key - 0x61;
assert(active_index < 12);
if (term[active_index]){
term[active_index]->begin_paint();
term[active_index]->set_focus(true);
painting = true;
}
else{
term[active_index] = new terminal(*back_buf);
painting = false;
}
update_status();
continue;
}
auto ch = parse(key);
if (ch){
if (!painting){
term[active_index]->begin_paint();
painting = true;
}
term[active_index]->put(ch);
}
}
}
if (painting)
term[active_index]->end_paint();
}
return 0;
} |
17296c3f47b40994d7f2dcaa3e653f1c790ca7ce | 7579d827cb7b50b438dfd9ef6fa80ba2797848c9 | /sources/plug_osg/src/luna/bind_osgParticle_Emitter.cpp | 37703d2a35b4b3a9322b1d2cda013ac9f11d5aa3 | [] | no_license | roche-emmanuel/sgt | 809d00b056e36b7799bbb438b8099e3036377377 | ee3a550f6172c7d14179d9d171e0124306495e45 | refs/heads/master | 2021-05-01T12:51:39.983104 | 2014-09-08T03:35:15 | 2014-09-08T03:35:15 | 79,538,908 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,797 | cpp | bind_osgParticle_Emitter.cpp | #include <plug_common.h>
#include <luna/wrappers/wrapper_osgParticle_Emitter.h>
class luna_wrapper_osgParticle_Emitter {
public:
typedef Luna< osgParticle::Emitter > luna_t;
inline static bool _lg_typecheck_getTable(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
static int _bind_getTable(lua_State *L) {
if (!_lg_typecheck_getTable(L)) {
luaL_error(L, "luna typecheck failed in getTable function, expected prototype:\ngetTable(). Got arguments:\n%s",luna_dumpStack(L).c_str());
}
osg::Referenced* self=(Luna< osg::Referenced >::check(L,1));
if(!self) {
luaL_error(L, "Invalid object in function call getTable()");
}
luna_wrapper_base* wrapper = luna_caster<osg::Referenced,luna_wrapper_base>::cast(self); //dynamic_cast<luna_wrapper_base*>(self);
if(wrapper) {
CHECK_RET(wrapper->pushTable(),0,"Cannot push table from value wrapper.");
return 1;
}
return 0;
}
inline static bool _lg_typecheck_fromVoid(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
if( !Luna<void>::has_uniqueid(L,1,3625364) ) return false;
return true;
}
static int _bind_fromVoid(lua_State *L) {
if (!_lg_typecheck_fromVoid(L)) {
luaL_error(L, "luna typecheck failed in fromVoid function, expected prototype:\nfromVoid(void*). Got arguments:\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self= (osgParticle::Emitter*)(Luna< void >::check(L,1));
if(!self) {
luaL_error(L, "Invalid object in function call fromVoid(...)");
}
Luna< osgParticle::Emitter >::push(L,self,false);
return 1;
}
inline static bool _lg_typecheck_asVoid(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
if( !Luna<void>::has_uniqueid(L,1,50169651) ) return false;
return true;
}
static int _bind_asVoid(lua_State *L) {
if (!_lg_typecheck_asVoid(L)) {
luaL_error(L, "luna typecheck failed in fromVoid function, expected prototype:\nasVoid(). Got arguments:\n%s",luna_dumpStack(L).c_str());
}
void* self= (void*)(Luna< osg::Referenced >::check(L,1));
if(!self) {
luaL_error(L, "Invalid object in function call asVoid(...)");
}
Luna< void >::push(L,self,false);
return 1;
}
// Derived class converters:
static int _cast_from_Referenced(lua_State *L) {
// all checked are already performed before reaching this point.
//osgParticle::Emitter* ptr= dynamic_cast< osgParticle::Emitter* >(Luna< osg::Referenced >::check(L,1));
osgParticle::Emitter* ptr= luna_caster< osg::Referenced, osgParticle::Emitter >::cast(Luna< osg::Referenced >::check(L,1));
if(!ptr)
return 0;
// Otherwise push the pointer:
Luna< osgParticle::Emitter >::push(L,ptr,false);
return 1;
};
// Constructor checkers:
inline static bool _lg_typecheck_ctor_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
if( lua_istable(L,1)==0 ) return false;
return true;
}
inline static bool _lg_typecheck_ctor_overload_2(lua_State *L) {
int luatop = lua_gettop(L);
if( luatop<2 || luatop>3 ) return false;
if( lua_istable(L,1)==0 ) return false;
if( !Luna<void>::has_uniqueid(L,2,50169651) ) return false;
if( (!(Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,2))) ) return false;
if( luatop>2 && !Luna<void>::has_uniqueid(L,3,27134364) ) return false;
if( luatop>2 && (!(Luna< osg::CopyOp >::check(L,3))) ) return false;
return true;
}
// Function checkers:
inline static bool _lg_typecheck_libraryName(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_className(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_isSameKindAs(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( (lua_isnil(L,2)==0 && !Luna<void>::has_uniqueid(L,2,50169651)) ) return false;
return true;
}
inline static bool _lg_typecheck_accept(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,2,50169651) ) return false;
return true;
}
inline static bool _lg_typecheck_getParticleTemplate(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_setParticleTemplate(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,2,81629555) ) return false;
return true;
}
inline static bool _lg_typecheck_getUseDefaultTemplate(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_setUseDefaultTemplate(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( lua_isboolean(L,2)==0 ) return false;
return true;
}
inline static bool _lg_typecheck_base_setName(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( lua_type(L,2)!=LUA_TSTRING ) return false;
return true;
}
inline static bool _lg_typecheck_base_computeDataVariance(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_setUserData(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( (lua_isnil(L,2)==0 && !Luna<void>::has_uniqueid(L,2,50169651)) ) return false;
return true;
}
inline static bool _lg_typecheck_base_getUserData_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_getUserData_overload_2(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_cloneType(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_clone(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,2,27134364) ) return false;
return true;
}
inline static bool _lg_typecheck_base_asGroup_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asGroup_overload_2(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asTransform_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asTransform_overload_2(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asCamera_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asCamera_overload_2(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asSwitch_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asSwitch_overload_2(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asGeode_overload_1(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_asGeode_overload_2(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_ascend(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,2,50169651) ) return false;
return true;
}
inline static bool _lg_typecheck_base_setThreadSafeRefUnref(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( lua_isboolean(L,2)==0 ) return false;
return true;
}
inline static bool _lg_typecheck_base_releaseGLObjects(lua_State *L) {
int luatop = lua_gettop(L);
if( luatop<1 || luatop>2 ) return false;
if( luatop>1 && (lua_isnil(L,2)==0 && !Luna<void>::has_uniqueid(L,2,50169651)) ) return false;
return true;
}
inline static bool _lg_typecheck_base_traverse(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,2,50169651) ) return false;
return true;
}
inline static bool _lg_typecheck_base_computeBound(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_libraryName(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_className(lua_State *L) {
if( lua_gettop(L)!=1 ) return false;
return true;
}
inline static bool _lg_typecheck_base_isSameKindAs(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( (lua_isnil(L,2)==0 && !Luna<void>::has_uniqueid(L,2,50169651)) ) return false;
return true;
}
inline static bool _lg_typecheck_base_accept(lua_State *L) {
if( lua_gettop(L)!=2 ) return false;
if( !Luna<void>::has_uniqueid(L,2,50169651) ) return false;
return true;
}
// Operator checkers:
// (found 0 valid operators)
// Constructor binds:
// osgParticle::Emitter::Emitter(lua_Table * data)
static osgParticle::Emitter* _bind_ctor_overload_1(lua_State *L) {
if (!_lg_typecheck_ctor_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osgParticle::Emitter::Emitter(lua_Table * data) function, expected prototype:\nosgParticle::Emitter::Emitter(lua_Table * data)\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
return new wrapper_osgParticle_Emitter(L,NULL);
}
// osgParticle::Emitter::Emitter(lua_Table * data, const osgParticle::Emitter & copy, const osg::CopyOp & copyop = osg::CopyOp::SHALLOW_COPY)
static osgParticle::Emitter* _bind_ctor_overload_2(lua_State *L) {
if (!_lg_typecheck_ctor_overload_2(L)) {
luaL_error(L, "luna typecheck failed in osgParticle::Emitter::Emitter(lua_Table * data, const osgParticle::Emitter & copy, const osg::CopyOp & copyop = osg::CopyOp::SHALLOW_COPY) function, expected prototype:\nosgParticle::Emitter::Emitter(lua_Table * data, const osgParticle::Emitter & copy, const osg::CopyOp & copyop = osg::CopyOp::SHALLOW_COPY)\nClass arguments details:\narg 2 ID = 50169651\narg 3 ID = 27134364\n\n%s",luna_dumpStack(L).c_str());
}
int luatop = lua_gettop(L);
const osgParticle::Emitter* copy_ptr=(Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,2));
if( !copy_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg copy in osgParticle::Emitter::Emitter function");
}
const osgParticle::Emitter & copy=*copy_ptr;
const osg::CopyOp* copyop_ptr=luatop>2 ? (Luna< osg::CopyOp >::check(L,3)) : NULL;
if( luatop>2 && !copyop_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg copyop in osgParticle::Emitter::Emitter function");
}
const osg::CopyOp & copyop=luatop>2 ? *copyop_ptr : (const osg::CopyOp&)osg::CopyOp::SHALLOW_COPY;
return new wrapper_osgParticle_Emitter(L,NULL, copy, copyop);
}
// Overload binder for osgParticle::Emitter::Emitter
static osgParticle::Emitter* _bind_ctor(lua_State *L) {
if (_lg_typecheck_ctor_overload_1(L)) return _bind_ctor_overload_1(L);
if (_lg_typecheck_ctor_overload_2(L)) return _bind_ctor_overload_2(L);
luaL_error(L, "error in function Emitter, cannot match any of the overloads for function Emitter:\n Emitter(lua_Table *)\n Emitter(lua_Table *, const osgParticle::Emitter &, const osg::CopyOp &)\n");
return NULL;
}
// Function binds:
// const char * osgParticle::Emitter::libraryName() const
static int _bind_libraryName(lua_State *L) {
if (!_lg_typecheck_libraryName(L)) {
luaL_error(L, "luna typecheck failed in const char * osgParticle::Emitter::libraryName() const function, expected prototype:\nconst char * osgParticle::Emitter::libraryName() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const char * osgParticle::Emitter::libraryName() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const char * lret = self->libraryName();
lua_pushstring(L,lret);
return 1;
}
// const char * osgParticle::Emitter::className() const
static int _bind_className(lua_State *L) {
if (!_lg_typecheck_className(L)) {
luaL_error(L, "luna typecheck failed in const char * osgParticle::Emitter::className() const function, expected prototype:\nconst char * osgParticle::Emitter::className() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const char * osgParticle::Emitter::className() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const char * lret = self->className();
lua_pushstring(L,lret);
return 1;
}
// bool osgParticle::Emitter::isSameKindAs(const osg::Object * obj) const
static int _bind_isSameKindAs(lua_State *L) {
if (!_lg_typecheck_isSameKindAs(L)) {
luaL_error(L, "luna typecheck failed in bool osgParticle::Emitter::isSameKindAs(const osg::Object * obj) const function, expected prototype:\nbool osgParticle::Emitter::isSameKindAs(const osg::Object * obj) const\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
const osg::Object* obj=(Luna< osg::Referenced >::checkSubType< osg::Object >(L,2));
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call bool osgParticle::Emitter::isSameKindAs(const osg::Object *) const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
bool lret = self->isSameKindAs(obj);
lua_pushboolean(L,lret?1:0);
return 1;
}
// void osgParticle::Emitter::accept(osg::NodeVisitor & nv)
static int _bind_accept(lua_State *L) {
if (!_lg_typecheck_accept(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::accept(osg::NodeVisitor & nv) function, expected prototype:\nvoid osgParticle::Emitter::accept(osg::NodeVisitor & nv)\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
osg::NodeVisitor* nv_ptr=(Luna< osg::Referenced >::checkSubType< osg::NodeVisitor >(L,2));
if( !nv_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg nv in osgParticle::Emitter::accept function");
}
osg::NodeVisitor & nv=*nv_ptr;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::accept(osg::NodeVisitor &). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->accept(nv);
return 0;
}
// const osgParticle::Particle & osgParticle::Emitter::getParticleTemplate() const
static int _bind_getParticleTemplate(lua_State *L) {
if (!_lg_typecheck_getParticleTemplate(L)) {
luaL_error(L, "luna typecheck failed in const osgParticle::Particle & osgParticle::Emitter::getParticleTemplate() const function, expected prototype:\nconst osgParticle::Particle & osgParticle::Emitter::getParticleTemplate() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osgParticle::Particle & osgParticle::Emitter::getParticleTemplate() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osgParticle::Particle* lret = &self->getParticleTemplate();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osgParticle::Particle >::push(L,lret,false);
return 1;
}
// void osgParticle::Emitter::setParticleTemplate(const osgParticle::Particle & p)
static int _bind_setParticleTemplate(lua_State *L) {
if (!_lg_typecheck_setParticleTemplate(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::setParticleTemplate(const osgParticle::Particle & p) function, expected prototype:\nvoid osgParticle::Emitter::setParticleTemplate(const osgParticle::Particle & p)\nClass arguments details:\narg 1 ID = 81629555\n\n%s",luna_dumpStack(L).c_str());
}
const osgParticle::Particle* p_ptr=(Luna< osgParticle::Particle >::check(L,2));
if( !p_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg p in osgParticle::Emitter::setParticleTemplate function");
}
const osgParticle::Particle & p=*p_ptr;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::setParticleTemplate(const osgParticle::Particle &). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->setParticleTemplate(p);
return 0;
}
// bool osgParticle::Emitter::getUseDefaultTemplate() const
static int _bind_getUseDefaultTemplate(lua_State *L) {
if (!_lg_typecheck_getUseDefaultTemplate(L)) {
luaL_error(L, "luna typecheck failed in bool osgParticle::Emitter::getUseDefaultTemplate() const function, expected prototype:\nbool osgParticle::Emitter::getUseDefaultTemplate() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call bool osgParticle::Emitter::getUseDefaultTemplate() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
bool lret = self->getUseDefaultTemplate();
lua_pushboolean(L,lret?1:0);
return 1;
}
// void osgParticle::Emitter::setUseDefaultTemplate(bool v)
static int _bind_setUseDefaultTemplate(lua_State *L) {
if (!_lg_typecheck_setUseDefaultTemplate(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::setUseDefaultTemplate(bool v) function, expected prototype:\nvoid osgParticle::Emitter::setUseDefaultTemplate(bool v)\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
bool v=(bool)(lua_toboolean(L,2)==1);
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::setUseDefaultTemplate(bool). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->setUseDefaultTemplate(v);
return 0;
}
// void osgParticle::Emitter::base_setName(const std::string & name)
static int _bind_base_setName(lua_State *L) {
if (!_lg_typecheck_base_setName(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_setName(const std::string & name) function, expected prototype:\nvoid osgParticle::Emitter::base_setName(const std::string & name)\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
std::string name(lua_tostring(L,2),lua_objlen(L,2));
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_setName(const std::string &). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::setName(name);
return 0;
}
// void osgParticle::Emitter::base_computeDataVariance()
static int _bind_base_computeDataVariance(lua_State *L) {
if (!_lg_typecheck_base_computeDataVariance(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_computeDataVariance() function, expected prototype:\nvoid osgParticle::Emitter::base_computeDataVariance()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_computeDataVariance(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::computeDataVariance();
return 0;
}
// void osgParticle::Emitter::base_setUserData(osg::Referenced * obj)
static int _bind_base_setUserData(lua_State *L) {
if (!_lg_typecheck_base_setUserData(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_setUserData(osg::Referenced * obj) function, expected prototype:\nvoid osgParticle::Emitter::base_setUserData(osg::Referenced * obj)\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
osg::Referenced* obj=(Luna< osg::Referenced >::check(L,2));
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_setUserData(osg::Referenced *). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::setUserData(obj);
return 0;
}
// osg::Referenced * osgParticle::Emitter::base_getUserData()
static int _bind_base_getUserData_overload_1(lua_State *L) {
if (!_lg_typecheck_base_getUserData_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osg::Referenced * osgParticle::Emitter::base_getUserData() function, expected prototype:\nosg::Referenced * osgParticle::Emitter::base_getUserData()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Referenced * osgParticle::Emitter::base_getUserData(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Referenced * lret = self->Emitter::getUserData();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Referenced >::push(L,lret,false);
return 1;
}
// const osg::Referenced * osgParticle::Emitter::base_getUserData() const
static int _bind_base_getUserData_overload_2(lua_State *L) {
if (!_lg_typecheck_base_getUserData_overload_2(L)) {
luaL_error(L, "luna typecheck failed in const osg::Referenced * osgParticle::Emitter::base_getUserData() const function, expected prototype:\nconst osg::Referenced * osgParticle::Emitter::base_getUserData() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osg::Referenced * osgParticle::Emitter::base_getUserData() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osg::Referenced * lret = self->Emitter::getUserData();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Referenced >::push(L,lret,false);
return 1;
}
// Overload binder for osgParticle::Emitter::base_getUserData
static int _bind_base_getUserData(lua_State *L) {
if (_lg_typecheck_base_getUserData_overload_1(L)) return _bind_base_getUserData_overload_1(L);
if (_lg_typecheck_base_getUserData_overload_2(L)) return _bind_base_getUserData_overload_2(L);
luaL_error(L, "error in function base_getUserData, cannot match any of the overloads for function base_getUserData:\n base_getUserData()\n base_getUserData()\n");
return 0;
}
// osg::Object * osgParticle::Emitter::base_cloneType() const
static int _bind_base_cloneType(lua_State *L) {
if (!_lg_typecheck_base_cloneType(L)) {
luaL_error(L, "luna typecheck failed in osg::Object * osgParticle::Emitter::base_cloneType() const function, expected prototype:\nosg::Object * osgParticle::Emitter::base_cloneType() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Object * osgParticle::Emitter::base_cloneType() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Object * lret = self->Emitter::cloneType();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Object >::push(L,lret,false);
return 1;
}
// osg::Object * osgParticle::Emitter::base_clone(const osg::CopyOp & copyop) const
static int _bind_base_clone(lua_State *L) {
if (!_lg_typecheck_base_clone(L)) {
luaL_error(L, "luna typecheck failed in osg::Object * osgParticle::Emitter::base_clone(const osg::CopyOp & copyop) const function, expected prototype:\nosg::Object * osgParticle::Emitter::base_clone(const osg::CopyOp & copyop) const\nClass arguments details:\narg 1 ID = 27134364\n\n%s",luna_dumpStack(L).c_str());
}
const osg::CopyOp* copyop_ptr=(Luna< osg::CopyOp >::check(L,2));
if( !copyop_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg copyop in osgParticle::Emitter::base_clone function");
}
const osg::CopyOp & copyop=*copyop_ptr;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Object * osgParticle::Emitter::base_clone(const osg::CopyOp &) const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Object * lret = self->Emitter::clone(copyop);
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Object >::push(L,lret,false);
return 1;
}
// osg::Group * osgParticle::Emitter::base_asGroup()
static int _bind_base_asGroup_overload_1(lua_State *L) {
if (!_lg_typecheck_base_asGroup_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osg::Group * osgParticle::Emitter::base_asGroup() function, expected prototype:\nosg::Group * osgParticle::Emitter::base_asGroup()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Group * osgParticle::Emitter::base_asGroup(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Group * lret = self->Emitter::asGroup();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Group >::push(L,lret,false);
return 1;
}
// const osg::Group * osgParticle::Emitter::base_asGroup() const
static int _bind_base_asGroup_overload_2(lua_State *L) {
if (!_lg_typecheck_base_asGroup_overload_2(L)) {
luaL_error(L, "luna typecheck failed in const osg::Group * osgParticle::Emitter::base_asGroup() const function, expected prototype:\nconst osg::Group * osgParticle::Emitter::base_asGroup() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osg::Group * osgParticle::Emitter::base_asGroup() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osg::Group * lret = self->Emitter::asGroup();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Group >::push(L,lret,false);
return 1;
}
// Overload binder for osgParticle::Emitter::base_asGroup
static int _bind_base_asGroup(lua_State *L) {
if (_lg_typecheck_base_asGroup_overload_1(L)) return _bind_base_asGroup_overload_1(L);
if (_lg_typecheck_base_asGroup_overload_2(L)) return _bind_base_asGroup_overload_2(L);
luaL_error(L, "error in function base_asGroup, cannot match any of the overloads for function base_asGroup:\n base_asGroup()\n base_asGroup()\n");
return 0;
}
// osg::Transform * osgParticle::Emitter::base_asTransform()
static int _bind_base_asTransform_overload_1(lua_State *L) {
if (!_lg_typecheck_base_asTransform_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osg::Transform * osgParticle::Emitter::base_asTransform() function, expected prototype:\nosg::Transform * osgParticle::Emitter::base_asTransform()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Transform * osgParticle::Emitter::base_asTransform(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Transform * lret = self->Emitter::asTransform();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Transform >::push(L,lret,false);
return 1;
}
// const osg::Transform * osgParticle::Emitter::base_asTransform() const
static int _bind_base_asTransform_overload_2(lua_State *L) {
if (!_lg_typecheck_base_asTransform_overload_2(L)) {
luaL_error(L, "luna typecheck failed in const osg::Transform * osgParticle::Emitter::base_asTransform() const function, expected prototype:\nconst osg::Transform * osgParticle::Emitter::base_asTransform() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osg::Transform * osgParticle::Emitter::base_asTransform() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osg::Transform * lret = self->Emitter::asTransform();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Transform >::push(L,lret,false);
return 1;
}
// Overload binder for osgParticle::Emitter::base_asTransform
static int _bind_base_asTransform(lua_State *L) {
if (_lg_typecheck_base_asTransform_overload_1(L)) return _bind_base_asTransform_overload_1(L);
if (_lg_typecheck_base_asTransform_overload_2(L)) return _bind_base_asTransform_overload_2(L);
luaL_error(L, "error in function base_asTransform, cannot match any of the overloads for function base_asTransform:\n base_asTransform()\n base_asTransform()\n");
return 0;
}
// osg::Camera * osgParticle::Emitter::base_asCamera()
static int _bind_base_asCamera_overload_1(lua_State *L) {
if (!_lg_typecheck_base_asCamera_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osg::Camera * osgParticle::Emitter::base_asCamera() function, expected prototype:\nosg::Camera * osgParticle::Emitter::base_asCamera()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Camera * osgParticle::Emitter::base_asCamera(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Camera * lret = self->Emitter::asCamera();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Camera >::push(L,lret,false);
return 1;
}
// const osg::Camera * osgParticle::Emitter::base_asCamera() const
static int _bind_base_asCamera_overload_2(lua_State *L) {
if (!_lg_typecheck_base_asCamera_overload_2(L)) {
luaL_error(L, "luna typecheck failed in const osg::Camera * osgParticle::Emitter::base_asCamera() const function, expected prototype:\nconst osg::Camera * osgParticle::Emitter::base_asCamera() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osg::Camera * osgParticle::Emitter::base_asCamera() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osg::Camera * lret = self->Emitter::asCamera();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Camera >::push(L,lret,false);
return 1;
}
// Overload binder for osgParticle::Emitter::base_asCamera
static int _bind_base_asCamera(lua_State *L) {
if (_lg_typecheck_base_asCamera_overload_1(L)) return _bind_base_asCamera_overload_1(L);
if (_lg_typecheck_base_asCamera_overload_2(L)) return _bind_base_asCamera_overload_2(L);
luaL_error(L, "error in function base_asCamera, cannot match any of the overloads for function base_asCamera:\n base_asCamera()\n base_asCamera()\n");
return 0;
}
// osg::Switch * osgParticle::Emitter::base_asSwitch()
static int _bind_base_asSwitch_overload_1(lua_State *L) {
if (!_lg_typecheck_base_asSwitch_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osg::Switch * osgParticle::Emitter::base_asSwitch() function, expected prototype:\nosg::Switch * osgParticle::Emitter::base_asSwitch()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Switch * osgParticle::Emitter::base_asSwitch(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Switch * lret = self->Emitter::asSwitch();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Switch >::push(L,lret,false);
return 1;
}
// const osg::Switch * osgParticle::Emitter::base_asSwitch() const
static int _bind_base_asSwitch_overload_2(lua_State *L) {
if (!_lg_typecheck_base_asSwitch_overload_2(L)) {
luaL_error(L, "luna typecheck failed in const osg::Switch * osgParticle::Emitter::base_asSwitch() const function, expected prototype:\nconst osg::Switch * osgParticle::Emitter::base_asSwitch() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osg::Switch * osgParticle::Emitter::base_asSwitch() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osg::Switch * lret = self->Emitter::asSwitch();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Switch >::push(L,lret,false);
return 1;
}
// Overload binder for osgParticle::Emitter::base_asSwitch
static int _bind_base_asSwitch(lua_State *L) {
if (_lg_typecheck_base_asSwitch_overload_1(L)) return _bind_base_asSwitch_overload_1(L);
if (_lg_typecheck_base_asSwitch_overload_2(L)) return _bind_base_asSwitch_overload_2(L);
luaL_error(L, "error in function base_asSwitch, cannot match any of the overloads for function base_asSwitch:\n base_asSwitch()\n base_asSwitch()\n");
return 0;
}
// osg::Geode * osgParticle::Emitter::base_asGeode()
static int _bind_base_asGeode_overload_1(lua_State *L) {
if (!_lg_typecheck_base_asGeode_overload_1(L)) {
luaL_error(L, "luna typecheck failed in osg::Geode * osgParticle::Emitter::base_asGeode() function, expected prototype:\nosg::Geode * osgParticle::Emitter::base_asGeode()\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::Geode * osgParticle::Emitter::base_asGeode(). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::Geode * lret = self->Emitter::asGeode();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Geode >::push(L,lret,false);
return 1;
}
// const osg::Geode * osgParticle::Emitter::base_asGeode() const
static int _bind_base_asGeode_overload_2(lua_State *L) {
if (!_lg_typecheck_base_asGeode_overload_2(L)) {
luaL_error(L, "luna typecheck failed in const osg::Geode * osgParticle::Emitter::base_asGeode() const function, expected prototype:\nconst osg::Geode * osgParticle::Emitter::base_asGeode() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const osg::Geode * osgParticle::Emitter::base_asGeode() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const osg::Geode * lret = self->Emitter::asGeode();
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::Geode >::push(L,lret,false);
return 1;
}
// Overload binder for osgParticle::Emitter::base_asGeode
static int _bind_base_asGeode(lua_State *L) {
if (_lg_typecheck_base_asGeode_overload_1(L)) return _bind_base_asGeode_overload_1(L);
if (_lg_typecheck_base_asGeode_overload_2(L)) return _bind_base_asGeode_overload_2(L);
luaL_error(L, "error in function base_asGeode, cannot match any of the overloads for function base_asGeode:\n base_asGeode()\n base_asGeode()\n");
return 0;
}
// void osgParticle::Emitter::base_ascend(osg::NodeVisitor & nv)
static int _bind_base_ascend(lua_State *L) {
if (!_lg_typecheck_base_ascend(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_ascend(osg::NodeVisitor & nv) function, expected prototype:\nvoid osgParticle::Emitter::base_ascend(osg::NodeVisitor & nv)\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
osg::NodeVisitor* nv_ptr=(Luna< osg::Referenced >::checkSubType< osg::NodeVisitor >(L,2));
if( !nv_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg nv in osgParticle::Emitter::base_ascend function");
}
osg::NodeVisitor & nv=*nv_ptr;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_ascend(osg::NodeVisitor &). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::ascend(nv);
return 0;
}
// void osgParticle::Emitter::base_setThreadSafeRefUnref(bool threadSafe)
static int _bind_base_setThreadSafeRefUnref(lua_State *L) {
if (!_lg_typecheck_base_setThreadSafeRefUnref(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_setThreadSafeRefUnref(bool threadSafe) function, expected prototype:\nvoid osgParticle::Emitter::base_setThreadSafeRefUnref(bool threadSafe)\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
bool threadSafe=(bool)(lua_toboolean(L,2)==1);
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_setThreadSafeRefUnref(bool). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::setThreadSafeRefUnref(threadSafe);
return 0;
}
// void osgParticle::Emitter::base_releaseGLObjects(osg::State * arg1 = 0) const
static int _bind_base_releaseGLObjects(lua_State *L) {
if (!_lg_typecheck_base_releaseGLObjects(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_releaseGLObjects(osg::State * arg1 = 0) const function, expected prototype:\nvoid osgParticle::Emitter::base_releaseGLObjects(osg::State * arg1 = 0) const\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
int luatop = lua_gettop(L);
osg::State* _arg1=luatop>1 ? (Luna< osg::Referenced >::checkSubType< osg::State >(L,2)) : (osg::State*)0;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_releaseGLObjects(osg::State *) const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::releaseGLObjects(_arg1);
return 0;
}
// void osgParticle::Emitter::base_traverse(osg::NodeVisitor & arg1)
static int _bind_base_traverse(lua_State *L) {
if (!_lg_typecheck_base_traverse(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_traverse(osg::NodeVisitor & arg1) function, expected prototype:\nvoid osgParticle::Emitter::base_traverse(osg::NodeVisitor & arg1)\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
osg::NodeVisitor* _arg1_ptr=(Luna< osg::Referenced >::checkSubType< osg::NodeVisitor >(L,2));
if( !_arg1_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg _arg1 in osgParticle::Emitter::base_traverse function");
}
osg::NodeVisitor & _arg1=*_arg1_ptr;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_traverse(osg::NodeVisitor &). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::traverse(_arg1);
return 0;
}
// osg::BoundingSphered osgParticle::Emitter::base_computeBound() const
static int _bind_base_computeBound(lua_State *L) {
if (!_lg_typecheck_base_computeBound(L)) {
luaL_error(L, "luna typecheck failed in osg::BoundingSphered osgParticle::Emitter::base_computeBound() const function, expected prototype:\nosg::BoundingSphered osgParticle::Emitter::base_computeBound() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call osg::BoundingSphered osgParticle::Emitter::base_computeBound() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
osg::BoundingSphered stack_lret = self->Emitter::computeBound();
osg::BoundingSphered* lret = new osg::BoundingSphered(stack_lret);
if(!lret) return 0; // Do not write NULL pointers.
Luna< osg::BoundingSphered >::push(L,lret,true);
return 1;
}
// const char * osgParticle::Emitter::base_libraryName() const
static int _bind_base_libraryName(lua_State *L) {
if (!_lg_typecheck_base_libraryName(L)) {
luaL_error(L, "luna typecheck failed in const char * osgParticle::Emitter::base_libraryName() const function, expected prototype:\nconst char * osgParticle::Emitter::base_libraryName() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const char * osgParticle::Emitter::base_libraryName() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const char * lret = self->Emitter::libraryName();
lua_pushstring(L,lret);
return 1;
}
// const char * osgParticle::Emitter::base_className() const
static int _bind_base_className(lua_State *L) {
if (!_lg_typecheck_base_className(L)) {
luaL_error(L, "luna typecheck failed in const char * osgParticle::Emitter::base_className() const function, expected prototype:\nconst char * osgParticle::Emitter::base_className() const\nClass arguments details:\n\n%s",luna_dumpStack(L).c_str());
}
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call const char * osgParticle::Emitter::base_className() const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
const char * lret = self->Emitter::className();
lua_pushstring(L,lret);
return 1;
}
// bool osgParticle::Emitter::base_isSameKindAs(const osg::Object * obj) const
static int _bind_base_isSameKindAs(lua_State *L) {
if (!_lg_typecheck_base_isSameKindAs(L)) {
luaL_error(L, "luna typecheck failed in bool osgParticle::Emitter::base_isSameKindAs(const osg::Object * obj) const function, expected prototype:\nbool osgParticle::Emitter::base_isSameKindAs(const osg::Object * obj) const\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
const osg::Object* obj=(Luna< osg::Referenced >::checkSubType< osg::Object >(L,2));
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call bool osgParticle::Emitter::base_isSameKindAs(const osg::Object *) const. Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
bool lret = self->Emitter::isSameKindAs(obj);
lua_pushboolean(L,lret?1:0);
return 1;
}
// void osgParticle::Emitter::base_accept(osg::NodeVisitor & nv)
static int _bind_base_accept(lua_State *L) {
if (!_lg_typecheck_base_accept(L)) {
luaL_error(L, "luna typecheck failed in void osgParticle::Emitter::base_accept(osg::NodeVisitor & nv) function, expected prototype:\nvoid osgParticle::Emitter::base_accept(osg::NodeVisitor & nv)\nClass arguments details:\narg 1 ID = 50169651\n\n%s",luna_dumpStack(L).c_str());
}
osg::NodeVisitor* nv_ptr=(Luna< osg::Referenced >::checkSubType< osg::NodeVisitor >(L,2));
if( !nv_ptr ) {
luaL_error(L, "Dereferencing NULL pointer for arg nv in osgParticle::Emitter::base_accept function");
}
osg::NodeVisitor & nv=*nv_ptr;
osgParticle::Emitter* self=Luna< osg::Referenced >::checkSubType< osgParticle::Emitter >(L,1);
if(!self) {
luaL_error(L, "Invalid object in function call void osgParticle::Emitter::base_accept(osg::NodeVisitor &). Got : '%s'\n%s",typeid(Luna< osg::Referenced >::check(L,1)).name(),luna_dumpStack(L).c_str());
}
self->Emitter::accept(nv);
return 0;
}
// Operator binds:
};
osgParticle::Emitter* LunaTraits< osgParticle::Emitter >::_bind_ctor(lua_State *L) {
return luna_wrapper_osgParticle_Emitter::_bind_ctor(L);
// Note that this class is abstract (only lua wrappers can be created).
// Abstract methods:
// void osgParticle::Emitter::emitParticles(double dt)
}
void LunaTraits< osgParticle::Emitter >::_bind_dtor(osgParticle::Emitter* obj) {
osg::ref_ptr<osg::Referenced> refptr = obj;
}
const char LunaTraits< osgParticle::Emitter >::className[] = "Emitter";
const char LunaTraits< osgParticle::Emitter >::fullName[] = "osgParticle::Emitter";
const char LunaTraits< osgParticle::Emitter >::moduleName[] = "osgParticle";
const char* LunaTraits< osgParticle::Emitter >::parents[] = {"osgParticle.ParticleProcessor", 0};
const int LunaTraits< osgParticle::Emitter >::hash = 20504566;
const int LunaTraits< osgParticle::Emitter >::uniqueIDs[] = {50169651,0};
luna_RegType LunaTraits< osgParticle::Emitter >::methods[] = {
{"libraryName", &luna_wrapper_osgParticle_Emitter::_bind_libraryName},
{"className", &luna_wrapper_osgParticle_Emitter::_bind_className},
{"isSameKindAs", &luna_wrapper_osgParticle_Emitter::_bind_isSameKindAs},
{"accept", &luna_wrapper_osgParticle_Emitter::_bind_accept},
{"getParticleTemplate", &luna_wrapper_osgParticle_Emitter::_bind_getParticleTemplate},
{"setParticleTemplate", &luna_wrapper_osgParticle_Emitter::_bind_setParticleTemplate},
{"getUseDefaultTemplate", &luna_wrapper_osgParticle_Emitter::_bind_getUseDefaultTemplate},
{"setUseDefaultTemplate", &luna_wrapper_osgParticle_Emitter::_bind_setUseDefaultTemplate},
{"base_setName", &luna_wrapper_osgParticle_Emitter::_bind_base_setName},
{"base_computeDataVariance", &luna_wrapper_osgParticle_Emitter::_bind_base_computeDataVariance},
{"base_setUserData", &luna_wrapper_osgParticle_Emitter::_bind_base_setUserData},
{"base_getUserData", &luna_wrapper_osgParticle_Emitter::_bind_base_getUserData},
{"base_cloneType", &luna_wrapper_osgParticle_Emitter::_bind_base_cloneType},
{"base_clone", &luna_wrapper_osgParticle_Emitter::_bind_base_clone},
{"base_asGroup", &luna_wrapper_osgParticle_Emitter::_bind_base_asGroup},
{"base_asTransform", &luna_wrapper_osgParticle_Emitter::_bind_base_asTransform},
{"base_asCamera", &luna_wrapper_osgParticle_Emitter::_bind_base_asCamera},
{"base_asSwitch", &luna_wrapper_osgParticle_Emitter::_bind_base_asSwitch},
{"base_asGeode", &luna_wrapper_osgParticle_Emitter::_bind_base_asGeode},
{"base_ascend", &luna_wrapper_osgParticle_Emitter::_bind_base_ascend},
{"base_setThreadSafeRefUnref", &luna_wrapper_osgParticle_Emitter::_bind_base_setThreadSafeRefUnref},
{"base_releaseGLObjects", &luna_wrapper_osgParticle_Emitter::_bind_base_releaseGLObjects},
{"base_traverse", &luna_wrapper_osgParticle_Emitter::_bind_base_traverse},
{"base_computeBound", &luna_wrapper_osgParticle_Emitter::_bind_base_computeBound},
{"base_libraryName", &luna_wrapper_osgParticle_Emitter::_bind_base_libraryName},
{"base_className", &luna_wrapper_osgParticle_Emitter::_bind_base_className},
{"base_isSameKindAs", &luna_wrapper_osgParticle_Emitter::_bind_base_isSameKindAs},
{"base_accept", &luna_wrapper_osgParticle_Emitter::_bind_base_accept},
{"fromVoid", &luna_wrapper_osgParticle_Emitter::_bind_fromVoid},
{"asVoid", &luna_wrapper_osgParticle_Emitter::_bind_asVoid},
{"getTable", &luna_wrapper_osgParticle_Emitter::_bind_getTable},
{0,0}
};
luna_ConverterType LunaTraits< osgParticle::Emitter >::converters[] = {
{"osg::Referenced", &luna_wrapper_osgParticle_Emitter::_cast_from_Referenced},
{0,0}
};
luna_RegEnumType LunaTraits< osgParticle::Emitter >::enumValues[] = {
{0,0}
};
|
03e67d68137250dc193a34099f5a112b9249c73e | 864971d7410b421706061a725ad970dfa47ba74f | /基礎題庫/Contents/d392/d392.cpp | d28652060c7b909713d210dc51e3f4507b2a9f5a | [] | no_license | Offliners/ZeroJugde-writeup | f0494d12c8de1e010e04cdd1f037ee0d370e816a | 6fa9137819d62abdedd0f3dcb11b74924476226d | refs/heads/master | 2021-08-03T12:21:49.833359 | 2021-07-21T05:04:01 | 2021-07-21T05:04:01 | 174,837,290 | 2 | 3 | null | 2021-01-10T06:48:21 | 2019-03-10T14:47:33 | C | UTF-8 | C++ | false | false | 279 | cpp | d392.cpp | #include<iostream>
#include<sstream>
using namespace std;
int main(void)
{
string data;
while(getline(cin, data))
{
long int sum = 0;
long int temp = 0;
istringstream isNum(data);
while(isNum >> temp)
sum += temp;
cout << sum << endl;
}
return 0;
}
|
468a8b4d3d4c8178d360fdbf7bf0b9908c301bae | fba719746323ebb2a561cfc6f2cb448eec042d1a | /c++实用代码/tmp/汇编mod.cpp | 474d9e53659e0689afe8bfc2a776ac74572e1b9a | [
"MIT"
] | permissive | zhzh2001/Learning-public | 85eedf205b600dfa64747b20bce530861050b387 | c7b0fe6ea64d2890ba2b25ae8a080d61c22f71c9 | refs/heads/master | 2021-05-16T09:44:08.380814 | 2017-09-23T04:55:33 | 2017-09-23T04:55:33 | 104,541,989 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,753 | cpp | 汇编mod.cpp | #include<cstdio>
#include<ctime>
#include<algorithm>
using namespace std;
const int base[4][4]={{0,0,0,1},{0,1,0,1},{1,2,0,1},{0,0,3,1}};
const int mod=1000000007;
const int maxn=1000000+10;
struct node
{
int ID,n,res;
} p[maxn];
int power[31][4][4];
int n,t;
int c[4][4];
inline int MOD(int a,int b)
{
int div, res;
asm("mul %3; div %4": "=a" (div), "=&d" (res): "a" (a), "r" (b), "r" (mod));
return res;
}
void mul(int a[][4],int b[][4])
{
for (int k=0;k<4;k++)
for (int i=0;i<4;i++)
if (a[i][k])
for (int j=0;j<4;j++)
if (b[k][j])
{
c[i][j]+=MOD(a[i][k],b[k][j]);
if (c[i][j]>=mod) c[i][j]-=mod;
}
for (int i=0;i<4;i++)
for (int j=0;j<4;j++)
{
a[i][j]=c[i][j];c[i][j]=0;
}
}
bool cmp1(const node &a,const node &b)
{
return a.n<b.n;
}
bool cmp2(const node &a,const node &b)
{
return a.ID<b.ID;
}
int main()
{
//freopen("input.txt","r",stdin);
for (int i=0;i<4;i++)
for (int j=0;j<4;j++)
power[0][i][j]=base[i][j];
for (int i=1;i<31;i++)
{
for (int j=0;j<4;j++)
for (int k=0;k<4;k++)
power[i][j][k]=power[i-1][j][k];
mul(power[i],power[i-1]);
}
scanf("%d",&t);
for (int i=0;i<t;i++)
{
scanf("%d",&p[i].n);
p[i].ID=i;
}
sort(p,p+t,cmp1);
int res[4]={0,0,0,1};
for (int i=0,prev=0;i<t;prev=p[i++].n)
{
for (int j=0,k=p[i].n-prev;k;k=(k>>1),j++)
if (k&1)
{
int tmp[4]={res[0],res[1],res[2],res[3]};
res[0]=res[1]=res[2]=res[3]=0;
for (int u=0;u<4;u++)
for (int v=0;v<4;v++)
{
res[v]+=MOD(tmp[u],power[j][u][v]);
if (res[v]>=mod) res[v]-=mod;
}
}
int a=0;
for (int k=0;k<4;k++) {a+=res[k];if (a>=mod) a-=mod;}
p[i].res=a;
}
sort(p,p+t,cmp2);
for (int i=0;i<t;i++) printf("%d\n",p[i].res);
//printf("%0.9lf\n",(double)clock()/CLOCKS_PER_SEC);
}
|
1c0df1fcb655f118ce4619e884474c98f94211a3 | ecd8a9d636e6cedf616d39ecbedb27da982e0109 | /Engine/src/Engine/PhysicsCollision/Shapes.cpp | 5eb2a85f4a27c673b7b0c198e7649c1748f1c644 | [] | no_license | Nine-Craft/GameEngineBase | 32ae53fd85c4b39ae867eab960e7dd84b6a94575 | b5113577716da4b227923874b6db9a6961b01528 | refs/heads/master | 2023-09-02T11:48:30.925183 | 2021-09-13T15:23:55 | 2021-09-14T13:12:17 | 366,265,015 | 0 | 1 | null | 2021-09-14T13:12:18 | 2021-05-11T05:25:16 | C++ | UTF-8 | C++ | false | false | 1,599 | cpp | Shapes.cpp | /************************************************************************************//*!
\file Shapes.cpp
\project <PROJECT_NAME>
\author Chua Teck Lee, c.tecklee, 390008420
\par email: c.tecklee\@digipen.edu
\date September 2, 2021
\brief Shapes contains the basic data that support the fundamental piece of
geometry used in physics engine.
Copyright (C) 2021 DigiPen Institute of Technology.
Reproduction or disclosure of this file or its contents
without the prior written consent of DigiPen Institute of
Technology is prohibited.
*//*************************************************************************************/
#include "pch.h"
#include "Shapes.h"
#include <rttr/registration>
namespace engine
{
RTTR_REGISTRATION
{
using namespace rttr;
registration::class_<Plane2D>("Plane2D")
.property("Normal", &Plane2D::normal)
.property("Distance", &Plane2D::dist);
registration::class_<AABB2D>("AABB2D")
.property("Min", &AABB2D::min)
.property("Max", &AABB2D::max);
registration::class_<Circle>("Circle")
.property("Center", &Circle::center)
.property("Radius", &Circle::radius);
}
Plane2D::Plane2D(vec2 normal, float dist)
: normal{ normal }
, dist{ dist }
{
}
AABB2D::AABB2D(vec2 min, vec2 max)
: min{ min }
, max{ max }
{
}
Circle::Circle(vec2 center, float radius)
: center{ center }
, radius{ radius }
{
}
}
|
fa7fe0d2b4e54c25c14856840cae8b35491328bf | 1fb99fa0100d7094f4ffd5a1be53ee1834972e23 | /cuda-shift-throughput.cpp | 082ae2d3191d6e0546ef0307742619c3441c50e9 | [] | no_license | nattoheaven/cuda-shift-throughput | 2222b1f1b367a13baa9d8077d1d00d06e361b558 | 2bc1807144b65511163e51be9d928bffaa943fcf | refs/heads/master | 2021-01-23T19:40:59.459234 | 2013-05-13T21:25:24 | 2013-05-13T21:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,670 | cpp | cuda-shift-throughput.cpp | #include <algorithm>
#include <cstdio>
#include <cuda.h>
int
main()
{
CUresult result;
result = cuInit(0);
CUdevice device;
result = cuDeviceGet(&device, 0);
CUcontext ctx;
result = cuCtxCreate(&ctx, 0, device);
CUmodule module;
result = cuModuleLoad(&module, "cuda-shift-throughput.cubin");
CUfunction kernel;
result = cuModuleGetFunction(&kernel, module, "kernel");
int block;
result = cuFuncGetAttribute(&block,
CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK,
kernel);
int grid = 1024 * 1024;
CUevent event[2];
for (ptrdiff_t i = 0; i < 2; ++i) {
result = cuEventCreate(&event[i], 0);
}
result = cuEventRecord(event[0], 0);
result = cuLaunchKernel(kernel, grid, 1, 1, block, 1, 1, 0, 0, 0, 0);
result = cuEventRecord(event[1], 0);
result = cuEventSynchronize(event[1]);
float time;
result = cuEventElapsedTime(&time, event[0], event[1]);
int gpuclock;
result =
cuDeviceGetAttribute(&gpuclock, CU_DEVICE_ATTRIBUTE_CLOCK_RATE, device);
int gpump;
result =
cuDeviceGetAttribute(&gpump, CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT,
device);
std::printf("Clock: %d KHz, # of MPs: %d\n", gpuclock, gpump);
std::printf("Elapsed Time: %f milliseconds\n", time);
std::printf("# of Threads: %d, # of SHLs : %lld\n", block,
1024ll * block * grid);
std::printf("Throughput: %f\n",
1024.0 * block * grid / ((double) gpump * gpuclock * time));
for (ptrdiff_t i = 0; i < 2; ++i) {
result = cuEventDestroy(event[i]);
}
result = cuModuleUnload(module);
result = cuCtxDestroy(ctx);
return 0;
}
|
2340265b13301dcb464553f5f41cdedfcd9b6abb | 8a4f746976a04d9a30c3a74baf87af409424b0e6 | /main.cpp | 15757044c1dcd7deffdfe7a4ab52b6db679ddec9 | [] | no_license | ekbpolyakov/PI | 2d8f79a2d477bc7947a8020aa69193b6e20770f2 | bad617f16db25a7b204d8fdb8b09ddf0da05069e | refs/heads/master | 2021-07-08T16:01:30.211729 | 2021-04-13T15:04:41 | 2021-04-13T15:04:41 | 234,000,821 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | main.cpp | #include <algorithm>
#include <cassert>
#include <iostream>
#include <numeric>
#include <vector>
std::vector<int> sort_a(std::vector<int> v)
{
const auto sz = v.size();
for(auto i = 0u; i != sz-1; ++i)
{
for(auto j = 0u; j != sz-i-1; ++j)
{
if(v[j] > v[j+1])
{
std::swap(v[j], v[j+1]);
}
}
}
return v;
}
std::vector<int> sort_b(std::vector<int> v)
{
std::sort(std::begin(v), std::end(v));
return v;
}
auto create_series()
{
const int sz{100'000};
std::vector<int> v(sz);
std::iota(std::begin(v), std::end(v), 0);
std::reverse(std::begin(v), std::end(v));
return v;
}
int main()
{
assert(!"Do not profile in debug mode");
const auto v = create_series();
const auto a = sort_a(v);
const auto b = sort_b(v);
if (a != b) return 1;
}
|
24173532280aa5e7a26f9e224663f5fe26a9fd21 | ac5fa3d4abc3b9c5ec85f93cf54b6f78104d49dd | /networksetup/networksetting.cpp | 17d0ed20e967ee2fd1d3423deb474991e426a431 | [] | no_license | desertzk/mylib | 6ee27d24ea8946534bf6800e250df669c1d488d7 | e6a44b0bd97e6ec62769d398d395551d9e0c4f31 | refs/heads/master | 2020-08-18T08:27:31.986600 | 2020-06-18T07:23:47 | 2020-06-18T07:23:47 | 215,769,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,074 | cpp | networksetting.cpp | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h> // close()
#include <string.h> // strcpy, memset(), and memcpy()
#include <netdb.h> // struct addrinfo
#include <sys/types.h> // needed for socket(), uint8_t, uint16_t
#include <sys/socket.h> // needed for socket()
#include <netinet/in.h> // IPPROTO_RAW, INET_ADDRSTRLEN
#include <netinet/ip.h> // IP_MAXPACKET (which is 65535)
#include <arpa/inet.h> // inet_pton() and inet_ntop()
#include <sys/ioctl.h> // macro ioctl is defined
#include <bits/ioctls.h> // defines values for argument "request" of ioctl.
#include <net/if.h> // struct ifreq
#include <linux/if_ether.h> // ETH_P_ARP = 0x0806
#include <linux/if_packet.h> // struct sockaddr_ll (see man 7 packet)
#include <net/ethernet.h>
#include <ctype.h>
#include <errno.h> // errno, perror()
#include <netinet/in.h>
#include <net/route.h>
#include <ifaddrs.h>
int g_success_num=0;
/**
* Create socket function
*/
int create_socket() {
int sockfd = 0;
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if(sockfd == -1){
fprintf(stderr, "Could not get socket.\n");
return -1;
}
return sockfd;
}
/**
* Generic ioctrlcall to reduce code size
*/
int generic_ioctrlcall(int sockfd, u_long *flags, struct ifreq *ifr) {
if (ioctl(sockfd, (long unsigned int)flags, &ifr) < 0) {
fprintf(stderr, "ioctl: %s\n", (char *)flags);
return -1;
}
return 1;
}
/**
* Set route with metric 100
*/
int set_route(int sockfd, char *gateway_addr, struct sockaddr_in *addr,char *subnet_mask,char * iface_name) {
struct rtentry route;
int err = 0;
memset(&route, 0, sizeof(route));
addr = (struct sockaddr_in*) &route.rt_gateway;
addr->sin_family = AF_INET;
addr->sin_addr.s_addr = inet_addr(gateway_addr);
addr = (struct sockaddr_in*) &route.rt_dst;
addr->sin_family = AF_INET;
addr->sin_addr.s_addr =INADDR_ANY; //inet_addr(gateway_addr) & inet_addr(subnet_mask);
addr = (struct sockaddr_in*) &route.rt_genmask;
addr->sin_family = AF_INET;
addr->sin_addr.s_addr = inet_addr(subnet_mask);
route.rt_flags = RTF_UP | RTF_GATEWAY;
route.rt_metric = 600;//means ttl?
//route.rt_dev = iface_name;
err = ioctl(sockfd, SIOCADDRT, &route);
if ((err) < 0) {
fprintf(stderr, "ioctl: %s\n", "mahdi MOAHMMADI Error");
perror("ioctl set route");
return -1;
}
++g_success_num;
return 1;
}
/**
* Set ip function
*/
int set_ip(char *iface_name, char *ip_addr, char *gateway_addr,char *subnet_mask)
{
if(!iface_name)
return -1;
struct ifreq ifr;
struct sockaddr_in sin;
int sockfd = create_socket();
sin.sin_family = AF_INET;
// Convert IP from numbers and dots to binary notation
inet_aton(ip_addr,&sin.sin_addr);
/* get interface name */
strncpy(ifr.ifr_name, iface_name, IFNAMSIZ);
/* Read interface flags */
generic_ioctrlcall(sockfd, (u_long *)"SIOCGIFFLAGS", &ifr);
/*
* Expected in <net/if.h> according to
* "UNIX Network Programming".
*/
#ifdef ifr_flags
# define IRFFLAGS ifr_flags
#else /* Present on kFreeBSD */
# define IRFFLAGS ifr_flagshigh
#endif
// If interface is down, bring it up
if (ifr.IRFFLAGS | ~(IFF_UP)) {
ifr.IRFFLAGS |= IFF_UP;
generic_ioctrlcall(sockfd, (u_long *)"SIOCSIFFLAGS", &ifr);
}
// Set route
set_route(sockfd, gateway_addr , &sin,subnet_mask,iface_name);
memcpy(&ifr.ifr_addr, &sin, sizeof(struct sockaddr));
// Set interface address
if (ioctl(sockfd, SIOCSIFADDR, &ifr) < 0) {
fprintf(stderr, "Cannot set IP address. ");
perror(ifr.ifr_name);
return -1;
}
++g_success_num;
#undef IRFFLAGS
struct sockaddr_in* addr = (struct sockaddr_in*)&ifr.ifr_addr;
inet_pton(AF_INET, subnet_mask, &addr->sin_addr);
ioctl(sockfd, SIOCSIFNETMASK, &ifr);
++g_success_num;
return 0;
}
void setIPv4(char * ip,char * gw,char * netmask)
{
char cmd[128]={0};
//network interface
char nwkInf[64]="enp0s31f6";
//link down command in Linux
sprintf(cmd,"ip link set %s down",nwkInf);
system(cmd);
memset(cmd,0x00,64);
//command to set ip address, netmask
sprintf(cmd,"ifconfig %s %s netmask %s",nwkInf,ip,netmask);
system(cmd);
//printf("\ncmd : %s",cmd); fflush(stdout);
memset(cmd,0X00,64);
//command to set gateway
sprintf(cmd,"route add default gw %s %s",gw,nwkInf);
system(cmd);
memset(cmd,0X00,64);
//link up command
sprintf(cmd,"ip link set %s up",nwkInf);
system(cmd);
}
void get_interface_name(char *interface_name)
{
struct ifaddrs *addrs,*tmp;
getifaddrs(&addrs);
tmp = addrs;
while (tmp)
{
if (tmp->ifa_addr && tmp->ifa_addr->sa_family == AF_PACKET){
printf("%s\n", tmp->ifa_name);
if(tmp->ifa_name[0]=='e'){
strncpy(interface_name,tmp->ifa_name,strlen(tmp->ifa_name));
break;
}
}
tmp = tmp->ifa_next;
}
freeifaddrs(addrs);
}
int validate_number(char *str) {
while (*str) {
if(!isdigit(*str)){ //if the character is not a number, return false
return 0;
}
str++; //point to next character
}
return 1;
}
int validate_ip(char *rip) { //check whether the IP is valid or not
int i, num, dots = 0;
char ip[64] = {0};
strncpy(ip,rip,strlen(rip));
char *ptr;
if (ip == NULL)
return 0;
ptr = strtok(ip, "."); //cut the string using dor delimiter
if (ptr == NULL)
return 0;
while (ptr) {
if (!validate_number(ptr)) //check whether the sub string is holding only number or not
return 0;
num = atoi(ptr); //convert substring to number
if (num >= 0 && num <= 255) {
ptr = strtok(NULL, "."); //cut the next part of the string
if (ptr != NULL)
dots++; //increase the dot count
} else
return 0;
}
if (dots != 3) //if the number of dots are not 3, return false
return 0;
return 1;
}
int check_configed()
{
int ret=0;
FILE* fp = fopen("netsetup.txt", "wr");
if(!fp) {
perror("File opening failed");
return EXIT_FAILURE;
}
char line[256];
fgets(line, sizeof(line), fp);
if(strcmp(line,"3")==0)
ret=0;
else
ret=-1;
/*while (fgets(line, sizeof(line), fp)) {
note that fgets don't strip the terminating \n, checking its
presence would allow to handle lines longer that sizeof(line)
printf("%s", line);
}*/
fclose(fp);
return 0;
}
int write_file()
{
FILE* fp = fopen("netsetup.txt", "w");
if(!fp) {
perror("File opening failed");
return EXIT_FAILURE;
}
char line[256];
sprintf(line,"%d",g_success_num);
fputs(line, fp);
fclose(fp);
return 0;
}
int main()
{
char interface_name[64]={0};
get_interface_name(interface_name);
check_configed();
printf("Please enter network settings for the internal interface. If you are on the onprem network as the appliance, press ENTER when prompted for a gateway.\n");
char ip[32]={0};
printf("IP Address:");
scanf("%31s",ip);
while(!validate_ip(ip))
{
printf("ip address Not valid\n");
printf("IP Address:");
scanf("%31s",ip);
}
printf("Subnet mask:");
char subnet_mask[32]={0};
scanf("%31s",subnet_mask);
while(!validate_ip(subnet_mask))
{
printf("subnet mask Not valid\n");
printf("Subnet mask:");
scanf("%31s",subnet_mask);
}
printf("Gateway:");
char gateway[32]={0};
scanf("%31s",gateway);
while(!validate_ip(gateway))
{
printf("gateway Not valid\n");
printf("Gateway:");
scanf("%31s",gateway);
}
printf("%s %s %s\n ",ip,subnet_mask,gateway);
set_ip(interface_name, ip, gateway,subnet_mask);
//calling function to set network settings
//setIPv4("192.168.168.122","10.103.56.1","255.255.255.0");
return 0;
}
|
f24df1224a5faa3aa87fe02ffecbd2ad1395efad | 77e4c53fea487574fa4f037dc89ead98b3d66fef | /arnoldnodedatamodel.cpp | cb0f891b105fe897d6ffc059069c1c25f47ef42f | [] | no_license | kikou/Quick | fdf4726ff110eca7fc557a44b9dd5315dd127172 | 216473d5b39eaf885fbcc5bc4aef340581bdf9b5 | refs/heads/master | 2020-09-15T14:03:48.849203 | 2019-11-15T04:28:18 | 2019-11-15T04:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,040 | cpp | arnoldnodedatamodel.cpp | #include "arnoldnodedatamodel.h"
#include "database.h"
#include <QtDebug>
ArnoldNodeDataModel::ArnoldNodeDataModel(ArnoldNode* node, Database* database)
: m_node(node), m_database(database)
{
}
QString ArnoldNodeDataModel::caption() const
{
return m_node->name + " : " + m_node->nodeEntry->name;
}
QString ArnoldNodeDataModel::name() const
{
return m_node->name;
}
unsigned int ArnoldNodeDataModel::nPorts(PortType portType) const
{
unsigned int result = 0;
switch (portType)
{
case PortType::In:
for(auto value : m_node->paramValues)
{
result += static_cast<unsigned int>(value.vn.size());
}
break;
case PortType::Out:
//result = m_node->nodeEntry->output.isEmpty() ? 0 : 1;
result = 1;
break;
case PortType::None:
break;
}
return result;
}
NodeDataType ArnoldNodeDataModel::dataType(PortType /*portType*/, PortIndex /*portIndex*/) const
{
return MyNodeData().type();
}
QString ArnoldNodeDataModel::portCaption(PortType portType, PortIndex portIndex) const
{
switch (portType)
{
case PortType::In:
{
int i = 0;
int total = 0;
for(auto value : m_node->paramValues)
{
int size = static_cast<int>(value.vn.size());
if(portIndex < total + size)
{
return m_node->paramValues.keys()[i];
}
else
{
total += size;
}
i++;
}
break;
}
case PortType::Out:
switch (portIndex)
{
case 0:
return "Out";
}
break;
case PortType::None:
break;
}
return QString();
}
std::shared_ptr<NodeData> ArnoldNodeDataModel::outData(PortIndex /*port*/)
{
return std::make_shared<MyNodeData>();
}
void ArnoldNodeDataModel::setInData(std::shared_ptr<NodeData> /*data*/, int)
{
//
}
QWidget* ArnoldNodeDataModel::embeddedWidget()
{
return nullptr;
}
|
7e3941dea515a51fa5235931f797b2eccb4ea264 | ca4c4631f3d47a90b8415bbe70dbc7cae18c071e | /include/matrix_free/StkSimdGatheredElementData.h | 1c61a682f6ab1a2d54a2393c476b55e35eed91db | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Exawind/nalu-wind | 5765078c445d379ea952d2b25a01f5ff490837a6 | 722cd7757a412c9306645963808047824c312a17 | refs/heads/master | 2023-08-16T17:44:54.744168 | 2023-08-15T18:05:23 | 2023-08-15T18:05:23 | 132,016,365 | 111 | 87 | NOASSERTION | 2023-09-14T04:02:07 | 2018-05-03T15:39:32 | C | UTF-8 | C++ | false | false | 2,609 | h | StkSimdGatheredElementData.h | // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS), National Renewable Energy Laboratory, University of Texas Austin,
// Northwest Research Associates. Under the terms of Contract DE-NA0003525
// with NTESS, the U.S. Government retains certain rights in this software.
//
// This software is released under the BSD 3-clause license. See LICENSE file
// for more details.
//
#ifndef STK_SIMD_GATHERED_ELEMENT_DATA_H
#define STK_SIMD_GATHERED_ELEMENT_DATA_H
#include "matrix_free/KokkosViewTypes.h"
#include "matrix_free/PolynomialOrders.h"
#include "matrix_free/ValidSimdLength.h"
#include "stk_mesh/base/Types.hpp"
#include "stk_mesh/base/NgpMesh.hpp"
#include "stk_mesh/base/NgpField.hpp"
namespace stk {
namespace mesh {
struct Cartesian3d;
class BulkData;
} // namespace mesh
} // namespace stk
namespace sierra {
namespace nalu {
namespace matrix_free {
template <int p, int simd_len>
struct MeshIndexGetter
{
KOKKOS_FORCEINLINE_FUNCTION static stk::mesh::FastMeshIndex get(
const const_elem_mesh_index_view<p>& conn,
int index,
int k,
int j,
int i,
int n)
{
return valid_mesh_index(conn(index, k, j, i, n)) ? conn(index, k, j, i, n)
: conn(index, k, j, i, 0);
}
};
template <int p>
struct MeshIndexGetter<p, 1>
{
KOKKOS_FORCEINLINE_FUNCTION static stk::mesh::FastMeshIndex get(
const const_elem_mesh_index_view<p>& conn,
int index,
int k,
int j,
int i,
int)
{
return conn(index, k, j, i, 0);
}
};
namespace impl {
template <int p>
struct field_gather_t
{
static void invoke(
const_elem_mesh_index_view<p> connectivity,
const stk::mesh::NgpField<double>& field,
scalar_view<p> simd_element_field);
static void invoke(
const_elem_mesh_index_view<p> connectivity,
const stk::mesh::NgpField<double>& field,
vector_view<p> simd_element_field);
static void invoke(
const_face_mesh_index_view<p> connectivity,
const stk::mesh::NgpField<double>& field,
face_scalar_view<p> simd_element_field);
static void invoke(
const_face_mesh_index_view<p> connectivity,
const stk::mesh::NgpField<double>& field,
face_vector_view<p> simd_element_field);
};
} // namespace impl
P_INVOKEABLE(field_gather)
void field_gather(
const_node_mesh_index_view,
const stk::mesh::NgpField<double>&,
node_scalar_view);
void field_gather(
const_node_mesh_index_view,
const stk::mesh::NgpField<double>&,
node_vector_view);
} // namespace matrix_free
} // namespace nalu
} // namespace sierra
#endif
|
ca57ac3d9e58aa49bea6561b1c12953c53c20122 | 8cc355e8465211f4384655f55472d50d080ce1ac | /loaders__mp3__getlopt.cpp | c7b8a0e1ea0d7530829aa9be77714307a1af9ca7 | [
"CC0-1.0"
] | permissive | pgrawehr/golgotha | 47fb1e47c9a2e7f24e0ce7dde188f884a5504438 | 94e0b448d7e7224e56c27b029dec80ca710ceb8b | refs/heads/master | 2023-06-29T12:04:11.302599 | 2022-03-19T08:09:59 | 2022-03-19T08:09:59 | 40,831,531 | 7 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,712 | cpp | loaders__mp3__getlopt.cpp | #include "pch.h"
/********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, contact Jonathan Clark at
golgotha_source@usa.net (Subject should have "GOLG" in it)
***********************************************************************/
/*
* getlopt.c
*
* Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
* Tue Apr 8 07:15:13 MET DST 1997
*/
#include "loaders/mp3/getlopt.h"
int loptind = 1; /* index in argv[] */
int loptchr = 0; /* index in argv[loptind] */
char * loptarg; /* points to argument if present, else to option */
static char shortopt[2] = {
0, 0
};
void init_getlopt(void)
{
loptind = 1; /* index in argv[] */
loptchr = 0; /* index in argv[loptind] */
shortopt[0] = 0;
shortopt[1] = 0;
}
#if defined (ultrix) || defined (ULTRIX)
char *strdup(char * src)
{
char * dest;
if (!(dest = (char *) malloc(strlen(src)+1)))
{
return (NULL);
}
return (strcpy(dest, src));
}
#endif
topt *findopt(int islong, char * opt, topt * opts)
{
if (!opts)
{
return (0);
}
while (opts->lname)
{
if (islong)
{
if (!strcmp(opts->lname, opt))
{
return (opts);
}
}
else
if (opts->sname == *opt)
{
return (opts);
}
opts++;
}
return (0);
}
int performoption(int argc, char * argv[], topt * opt)
{
int result = GLO_CONTINUE;
if (!(opt->flags & 1))
{
/* doesn't take argument */
if (opt->var)
{
if (opt->flags & 2)
{
/* var is *char */
*((char *) opt->var) = (char) opt->value;
}
else
{
*((int *) opt->var) = opt->value;
}
}
else
{
result = opt->value ? opt->value : opt->sname;
}
}
else
{
/* requires argument */
if (loptind >= argc)
{
return (GLO_NOARG);
}
loptarg = argv[loptind++]+loptchr;
loptchr = 0;
if (opt->var)
{
if (opt->flags & 2)
{
/* var is *char */
*((char * *) opt->var) = strdup(loptarg);
}
else
{
*((int *) opt->var) = atoi(loptarg);
}
}
else
{
result = opt->value ? opt->value : opt->sname;
}
}
if (opt->func)
{
opt->func(loptarg);
}
return (result);
}
int getsingleopt(int argc, char * argv[], topt * opts)
{
char * thisopt;
topt * opt;
if (loptind >= argc)
{
return (GLO_END);
}
thisopt = argv[loptind];
if (!loptchr)
{
/* start new option string */
if (thisopt[0] != '-' || !thisopt[1])
{
/* no more options */
return (GLO_END);
}
if (thisopt[1] == '-')
{
/* "--" */
if (thisopt[2])
{
/* long option */
loptarg = thisopt+2;
loptind++;
if (!(opt = findopt(1, thisopt+2, opts)))
{
return (GLO_UNKNOWN);
}
else
{
return (performoption(argc, argv, opt));
}
}
else
{
/* "--" == end of options */
loptind++;
return (GLO_END);
}
}
else
{
/* start short option(s) */
loptchr = 1;
}
}
shortopt[0] = thisopt[loptchr];
loptarg = shortopt;
opt = findopt(0, thisopt+(loptchr++), opts);
if (!thisopt[loptchr])
{
loptind++;
loptchr = 0;
}
if (!opt)
{
return (GLO_UNKNOWN);
}
else
{
return (performoption(argc, argv, opt));
}
}
int getlopt(int argc, char * argv[], topt * opts)
{
int result;
while ((result = getsingleopt(argc, argv, opts)) == GLO_CONTINUE) ;
return (result);
}
/* EOF */
|
2141e7a1f60b651557c87f54615ca69319f75118 | cd64cca3d9e72e4ef0273e32b0f2d852ddabdadf | /MaximizeDistanceToClosestPerson/MaximizeDistanceToClosestPerson/main.cpp | 26ef8963a145d307c4d3cdbbc420cc510f40a4d7 | [] | no_license | stereotype13/LeetCodePractice | 48f4471a5e0b4d890ac31760f399f91173e197d8 | 1151084f16485c1ac0d5fadd6b533c0fb350a50b | refs/heads/master | 2020-11-25T03:34:57.825558 | 2020-03-09T21:33:02 | 2020-03-09T21:33:02 | 228,477,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,124 | cpp | main.cpp | /*
In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty.
There is at least one empty seat, and at least one person sitting.
Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized.
Return that maximum distance to closest person.
Example 1:
Input: [1,0,0,0,1,0,1]
Output: 2
Explanation:
If Alex sits in the second open seat (seats[2]), then the closest person has distance 2.
If Alex sits in any other open seat, the closest person has distance 1.
Thus, the maximum distance to the closest person is 2.
Example 2:
Input: [1,0,0,0]
Output: 3
Explanation:
If Alex sits in the last seat, the closest person is 3 seats away.
This is the maximum distance possible, so the answer is 3.
Note:
1 <= seats.length <= 20000
seats contains only 0s or 1s, at least one 0, and at least one 1.
*/
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int maxDistToClosest(vector<int>& seats) {
int minOne = INT_MAX, maxOne = 0;
int prevOne = -1;
int maxDistance = 0;
for (int i = 0; i < (int)seats.size(); ++i) {
int seat = seats[i];
if (seat == 1) {
minOne = min(minOne, i);
maxOne = max(maxOne, i);
if (prevOne == -1) {
prevOne = i;
continue;
}
int tempChosenSeat = (i - prevOne) / 2 + prevOne;
int rightDistance = i - tempChosenSeat;
int leftDistance = tempChosenSeat - prevOne;
maxDistance = max(maxDistance, min(leftDistance, rightDistance));
prevOne = i;
}
}
maxDistance = max(maxDistance, minOne);
maxDistance = max(maxDistance, (int)seats.size() - 1 - maxOne);
return maxDistance;
}
};
int main(int argc, const char* argv[]) {
Solution solution;
auto seats1 = vector<int>{ 1,0,0,0,1,0,1 };
cout << solution.maxDistToClosest(seats1) << endl;
auto seats2 = vector<int>{ 1, 0, 0, 0 };
cout << solution.maxDistToClosest(seats2) << endl;
auto seats3 = vector<int>{ 0,1 };// returns 0, but should be 1 ? !
cout << solution.maxDistToClosest(seats3) << endl;
cin.get();
return 0;
} |
fdf27c285224a3754b255f6e8b8124a3b66f3969 | 711fa63ab15dbd770b09ba911d3ff269224abf72 | /release/qrc_resource.cpp | 7433fc68318813b8cb699095432f80ad8228a180 | [] | no_license | jess12345/Kanban | 17ddf7762f8d9ff2c5111fd5aa1b8e324e41f4d3 | 0f7365f57b73e726da822af054cd60f23fb3a026 | refs/heads/master | 2021-01-19T10:35:27.819634 | 2019-07-18T11:50:26 | 2019-07-18T11:50:26 | 87,880,923 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 205,285 | cpp | qrc_resource.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.7.1
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsigned char qt_resource_data[] = {
// C:/JESS_DRIVE/Projects_Programming/C++/C++001_KanbanBoard/Kanban_Board/Pencil.ico
0x0,0x0,0x90,0x2d,
0x0,
0x2,0xc1,0xd0,0x78,0x9c,0x74,0x7a,0x65,0x54,0x1b,0x81,0xd6,0x6d,0x70,0x77,0x97,
0x16,0xf7,0x62,0xc5,0xdd,0x9d,0xe2,0x52,0xbc,0x14,0x97,0x22,0xc5,0xdd,0x5d,0x8b,
0x16,0x8a,0xbb,0xbb,0xbb,0xbb,0x14,0x87,0x22,0xc1,0xdd,0xdd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xed,0x76,0x5a,0x31,0x92,0xfc,0x9d,0xd4,0x1e,0x31,0x4f,0x4e,0x1b,0xf,0x7,
0xce,0x39,0x22,0x54,0xeb,0xeb,0xf5,0x2b,0xb7,0xff,0xd5,0xe2,0xa8,0x22,0xa1,0xee,
0xb9,0xc,0x34,0xaf,0x45,0xc9,0x60,0x4a,0x68,0x11,0xca,0xc2,0x88,0x6,0x4c,0x74,
0x39,0x19,0xee,0xe9,0x12,0xfd,0xbd,0x56,0xa0,0x9f,0xee,0x53,0xa,0x5e,0x9f,0xcf,
0x66,0xdb,0x4d,0x88,0x1f,0xbd,0xf4,0xea,0x62,0xcb,0x1d,0x31,0x6,0x48,0xa5,0x3,
0xba,0xf5,0x89,0xd1,0x90,0xdd,0xe7,0x67,0xd9,0xe9,0xeb,0xd7,0x38,0x8b,0x87,0x67,
0x24,0xaa,0x1e,0xbf,0x5,0x41,0xce,0xc9,0xda,0x5,0xa3,0xc7,0x80,0xb8,0x12,0xdf,
0x36,0x7c,0xef,0x53,0x4d,0x2,0x6e,0x95,0xaa,0x3a,0x2d,0x23,0x9b,0x82,0x81,0x5a,
0xe6,0xbc,0xed,0x14,0xea,0xb,0x64,0xd1,0x9e,0xeb,0x70,0xf6,0xf8,0xab,0x4b,0x21,
0xbe,0x8a,0xfb,0x10,0x38,0x8f,0x3,0xe9,0x9,0x28,0x68,0x1d,0x80,0x29,0xf2,0x5b,
0x68,0xa3,0xee,0x4f,0x35,0xb0,0xee,0xce,0x8b,0x48,0x51,0x39,0xa,0x1b,0x8,0xcd,
0x73,0xf7,0x9f,0x60,0xb4,0x45,0x52,0x57,0xd2,0xae,0x4b,0xbb,0x12,0x58,0x4,0x19,
0xb9,0xdb,0x39,0x6,0x64,0xb8,0x68,0x50,0x50,0xb4,0xb8,0x75,0x11,0x16,0x33,0x30,
0xd9,0x89,0xa6,0xad,0x26,0x43,0xcf,0x60,0x6d,0x22,0x3f,0x27,0xbc,0x87,0x45,0xfe,
0xce,0xd5,0xea,0x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7e,0xdf,0x67,0x1f,0x24,0x87,0x6d,0xe0,
0x1a,0x4e,0xcd,0x63,0xde,0xc6,0x77,0x65,0x6b,0xf,0x5e,0x57,0x26,0x8a,0xab,0xa9,
0x84,0x3e,0xf1,0x1c,0xee,0x90,0x6e,0x70,0x24,0x4f,0x9c,0x5b,0x9f,0x11,0x26,0xaa,
0x60,0x37,0x53,0x4b,0x23,0x11,0xd3,0x4d,0x49,0x2a,0x15,0x4,0x57,0x87,0x11,0xf2,
0x31,0x38,0xa4,0x41,0x7f,0xb4,0xd0,0xd8,0x74,0xc3,0xf9,0x55,0x88,0x8e,0x9a,0x90,
0xc1,0x52,0x58,0xd1,0xd2,0x79,0xbd,0xd1,0x8,0xf6,0x6a,0x7c,0xe8,0x98,0x7d,0x1f,
0x51,0xb9,0x32,0x74,0x1d,0x67,0x2b,0x3,0x7d,0x30,0x64,0xeb,0x55,0xc9,0x98,0x54,
0x54,0xc9,0x8a,0xcc,0xb9,0xf2,0x32,0x71,0x3b,0x45,0x88,0x8f,0xca,0x8,0x3f,0x5d,
0xa3,0x2a,0x65,0x39,0x7a,0xba,0x18,0x98,0x6c,0xa6,0xd1,0xc4,0xda,0x68,0xbb,0xaf,
0x18,0xda,0xbc,0x83,0x94,0x95,0x60,0x7f,0x1f,0xa8,0x5e,0x52,0xd4,0x53,0xfb,0x38,
0xcd,0x2e,0x9d,0x42,0x37,0x80,0xca,0xf8,0xe6,0xb1,0xce,0x6c,0x5f,0x36,0xea,0xf3,
0x27,0x32,0xd3,0x3f,0x56,0x46,0x58,0xd,0xd2,0xe9,0xff,0xae,0x6d,0xe0,0xee,0x7f,
0x3c,0x46,0x5e,0x80,0x95,0xc2,0x4e,0x24,0x97,0x95,0xfd,0xa9,0xbe,0x29,0xd,0xa7,
0x4a,0xa0,0x46,0xc6,0xdd,0x28,0x10,0x32,0xd,0xa3,0x9c,0x84,0x1e,0x48,0x95,0x51,
0x28,0x2d,0x86,0x22,0xf9,0x5b,0x52,0x2e,0x10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,0x21,0xfd,0xd4,0x67,0x22,0x12,0xbb,0x9b,0xd7,
0x6f,0x97,0x1b,0xa3,0xdc,0x5b,0xff,0xba,0x75,0x2,0xfb,0xc7,0x81,0xed,0xbe,0x58,
0x51,0x1b,0xdb,0x31,0xc0,0xdf,0xbb,0xb1,0xf,0xdf,0xef,0xad,0xcc,0xf0,0xa6,0xe4,
0xea,0xd,0x28,0x31,0xd,0xda,0xad,0x8a,0x0,0x50,0x10,0x42,0x80,0x60,0xe4,0xbe,
0xbb,0x74,0xce,0x69,0x65,0x58,0x74,0xfe,0xf0,0xb0,0x28,0x10,0x80,0x67,0x73,0x37,
0x14,0xd7,0xa6,0xd5,0x77,0x7a,0x85,0xb4,0xd8,0xfd,0x95,0x4c,0xa0,0x9c,0xba,0x41,
0x45,0x27,0x1d,0xc5,0xaa,0xb4,0x3,0x2c,0xe6,0x31,0xe9,0x3e,0xbe,0xf1,0x45,0x52,
0x69,0x66,0xc4,0xce,0xaa,0x3d,0x59,0x94,0x11,0xec,0x16,0x93,0x2c,0xd,0xb4,0x31,
0xbc,0xb5,0x97,0xab,0xc2,0x2c,0x80,0x39,0x72,0xc0,0x5c,0xc4,0x6d,0xdf,0x53,0x6a,
0x7c,0x85,0x9d,0xf7,0xed,0xf4,0xfc,0x73,0xbe,0xac,0x15,0xea,0x13,0x84,0xb7,0xee,
0x4f,0x13,0xb3,0x90,0x54,0x2b,0xe9,0x91,0x50,0xee,0xc9,0x8b,0xad,0xc0,0x1c,0x15,
0x78,0x62,0xb5,0x8a,0x22,0x44,0xee,0xce,0x6,0xc9,0x62,0x95,0x69,0xf2,0xee,0x98,
0xcf,0x6d,0xa4,0x85,0x2e,0x6a,0x64,0xf9,0x64,0x48,0xc8,0x48,0x7b,0x69,0x99,0xe8,
0x71,0xe0,0xba,0xb3,0xd7,0xc6,0x60,0x40,0xca,0x4a,0x2c,0x1,0xa,0xc3,0xf8,0x4b,
0xdb,0x29,0x60,0x8d,0xc4,0xaa,0xde,0x52,0x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0xc5,0xcf,0x8c,0x2c,0xb6,0x70,0xc5,0xf,0x1,0x52,0x91,0xc5,0xcf,
0x6d,0x5e,0x5f,0xbf,0x19,0xc2,0x9,0x19,0x10,0x58,0xe1,0x85,0x60,0x53,0xc1,0xd8,
0xd5,0x1b,0x14,0x58,0x71,0x6a,0xf3,0x1b,0x1e,0x16,0xec,0xf4,0xdd,0xe1,0x0,0xa6,
0x85,0xd7,0x77,0x4b,0x4b,0x44,0x5b,0xef,0xab,0x3f,0x86,0x91,0x1b,0x19,0x7b,0xcd,
0x86,0xf8,0xee,0x22,0xe8,0xf0,0x13,0x3c,0x6c,0xda,0x1,0x7e,0xe8,0x30,0xfe,0xe0,
0xaa,0x5,0xb3,0xc6,0x8f,0xe7,0xf,0x1b,0xac,0xfd,0x92,0xcf,0x38,0x25,0x66,0x61,
0x4b,0x34,0x96,0xd7,0x72,0x46,0x5f,0x3c,0xdd,0x4a,0xc0,0xb6,0x86,0xcd,0x6b,0xd5,
0x57,0xa0,0x47,0xe9,0xd4,0x2,0x50,0xd6,0xff,0xb1,0x77,0x1d,0x60,0x55,0x1c,0x5d,
0xfb,0xf6,0xde,0xb8,0x94,0x4b,0xef,0x45,0xaa,0x34,0x15,0x6c,0x74,0x44,0x45,0x54,
0x44,0x29,0xd2,0x7b,0x91,0x26,0xa2,0x20,0x48,0x91,0x22,0x22,0x22,0x16,0x50,0x3a,
0x82,0x82,0x8a,0xbd,0xf7,0x16,0x6b,0xd4,0x18,0x4d,0x37,0x26,0xd1,0x58,0x62,0x92,
0x2f,0x51,0x63,0x12,0x4d,0xd4,0x39,0xff,0x2e,0x25,0x5e,0x49,0xf2,0x25,0xfe,0x1f,
0x78,0xf5,0xb2,0xef,0xf3,0x9c,0x67,0x66,0x6f,0xd9,0x3d,0x3b,0xe7,0xcc,0x39,0x73,
0x76,0x67,0xce,0x38,0x54,0x39,0x36,0x74,0xb8,0xa8,0xee,0x6f,0xa0,0x46,0x1b,0x76,
0x4e,0xd7,0xe4,0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,0x3d,0x27,0x62,0x32,0x6f,0x35,0x9c,0x28,0x38,
0x1f,0xec,0x1a,0xf7,0xee,0x90,0xbb,0x37,0x92,0x87,0x79,0xac,0xfc,0xe0,0x79,0x9e,
0xf9,0x85,0x5f,0xa,0xf0,0x31,0xd6,0xcd,0x77,0xce,0x7e,0x76,0xc5,0xcd,0xed,0x86,
0x5,0x9d,0x29,0xb9,0x51,0x61,0xc7,0x60,0x9c,0x59,0x9c,0xbe,0x68,0x7f,0x5a,0x99,
0x4d,0xac,0x73,0xb9,0x57,0xcc,0x99,0x7b,0xd,0xe7,0xe2,0x23,0x2b,0x14,0x6f,0x75,
0xee,0x2a,0x5d,0xfa,0x71,0x55,0x6d,0xb4,0xf1,0x74,0xf7,0xca,0x33,0x63,0x46,0x9c,
0xf4,0xa4,0xd4,0x24,0xe3,0x41,0xd6,0x9a,0x86,0x86,0x53,0xf7,0xf3,0x9f,0x58,0xa6,
0x89,0x25,0x15,0x85,0x76,0x55,0xe1,0xba,0xef,0x91,0xac,0xad,0x8e,0xfb,0xb7,0x91,
0xde,0x21,0x51,0x12,0xdc,0x82,0xc4,0xe7,0x54,0xad,0x7d,0x72,0x2f,0x91,0x9c,0xcd,
0xce,0x5,0xdb,0x56,0x27,0xa9,0xba,0x19,0xda,0xdf,0xfc,0x54,0xe1,0xc6,0xc6,0xf,
0xe6,0x96,0xbd,0xbf,0xd3,0x11,0x1b,0xcd,0xb3,0x9a,0x7f,0xbb,0x68,0x38,0xf6,0x41,
0xd2,0xd9,0x35,0x6,0xb9,0xa2,0x8b,0x89,0x99,0xcb,0x6c,0xd2,0x6e,0x8a,0x25,0xe4,
0xf4,0x1f,0xc5,0xb7,0xae,0x5b,0xab,0xea,0x1b,0xf0,0x97,0x1b,0x33,0x62,0x55,0x33,
0xca,0xa,0xbd,0xcc,0xe9,0x96,0x19,0xf1,0x46,0x11,0xbb,0xb,0x19,0x45,0xf7,0x45,
0x5f,0xe4,0x68,0xdc,0xab,0x19,0xf9,0x29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,0x17,0x8f,0x7,0x5a,0x94,
0x19,0x50,0x3d,0x34,0xbf,0x63,0x17,0x38,0x1b,0xcb,0x9a,0x67,0x2,0xfd,0x7,0x71,
0x73,0x8,0x45,0x65,0x6d,0xf4,0x39,0x65,0x2c,0xee,0x53,0xac,0xd,0x0,0x8b,0x93,
0x95,0x20,0xd9,0x34,0xb,0xd8,0x35,0x93,0x81,0xb3,0x62,0x22,0xe8,0xac,0x4b,0x0,
0xb5,0x75,0x71,0xc0,0xce,0x19,0xd,0xd4,0xe9,0x6,0x40,0xf,0x33,0xdb,0xcf,0xc9,
0x19,0xcb,0x96,0x35,0xdf,0x4,0xfa,0xf,0x98,0x1f,0x30,0xd3,0xda,0x9e,0xf9,0x93,
0xa8,0x31,0x18,0xf4,0x37,0xa5,0x80,0xe1,0xe1,0x62,0x50,0x68,0xd,0x3,0xce,0xea,
0xc9,0xc0,0xab,0xf2,0x6,0xa3,0x6d,0xf3,0x40,0x5c,0x37,0x13,0x18,0x69,0x76,0x40,
0x1d,0xa7,0x89,0x98,0xb9,0xa3,0x12,0x65,0xcd,0x33,0x81,0xfe,0x85,0xc2,0x1a,0xff,
0x14,0xad,0x5d,0xd9,0x88,0x5f,0x3d,0xd,0xac,0xe,0x97,0x82,0x36,0x16,0x13,0xf2,
0xeb,0xa7,0x3,0x17,0xd3,0x1,0xf1,0x6a,0x7f,0x30,0xda,0x91,0xd,0x82,0x65,0x93,
0x81,0x16,0x6f,0x9,0xd4,0x89,0x3a,0x3f,0x72,0x16,0xba,0x10,0x7e,0x40,0x8e,0xa0,
0xd4,0x12,0xc6,0x54,0x6e,0x8e,0x38,0xa4,0xb6,0x39,0xd,0xeb,0xeb,0x81,0x60,0xfd,
0xce,0x32,0x50,0xdf,0x9a,0xe,0xdc,0xda,0x69,0xc0,0xad,0x9e,0xdc,0xe5,0x7,0xb4,
0x36,0x61,0x31,0x61,0x11,0x16,0x13,0x6,0x19,0x3,0x3d,0xd2,0x62,0x3f,0xb7,0xc0,
0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c3,0x41,0xd6,0x7c,0xca,0x2b,0xd4,0x3b,0x12,0x28,0x92,0x75,0x51,0xab,0x34,0xb1,
0xb8,0xd8,0xf2,0x40,0x11,0xd2,0xdb,0xbb,0x0,0x84,0xad,0x21,0x5d,0x76,0xc8,0x60,
0x47,0x16,0x70,0xa,0x5d,0x11,0x63,0x96,0xcd,0x29,0xfe,0x22,0x2f,0x91,0xac,0x79,
0x95,0x57,0xa8,0xb5,0xc7,0x29,0x69,0x6f,0x9b,0x7d,0x55,0x7d,0x43,0x2,0xb2,0x3d,
0xb9,0xc,0xd4,0xb6,0xa6,0x22,0x61,0x73,0x10,0x6e,0x87,0x40,0xbd,0x3d,0x1,0x31,
0x52,0xed,0x9e,0xb3,0x72,0x46,0x65,0xcb,0x9a,0x4f,0x79,0x86,0x72,0x73,0xe8,0x68,
0xfd,0x3d,0xb9,0x8f,0xf5,0xb0,0xd8,0xcc,0xea,0xe4,0x52,0xa4,0xb8,0x21,0x1a,0x89,
0x9b,0x83,0x91,0x19,0x66,0x87,0x44,0xab,0xfc,0x10,0x3d,0xde,0xea,0x21,0xa7,0xd4,
0x9d,0x88,0xcb,0x6,0x8,0x9a,0x9b,0x92,0xc9,0x2a,0xad,0x91,0x25,0xda,0xdb,0x33,
0x9f,0x5b,0x60,0x6d,0xae,0x7f,0x20,0x1f,0x14,0xd6,0x87,0x82,0x7a,0x5b,0x34,0x32,
0xde,0x9d,0xb,0x9c,0x85,0xae,0xc0,0x48,0xb1,0x3d,0xcb,0x5f,0xec,0xc5,0x95,0x35,
0xaf,0xf2,0xa,0xd5,0x75,0x31,0x3c,0xcd,0xcd,0x69,0x67,0xd4,0x36,0x26,0x62,0x76,
0xa8,0x12,0xd4,0xb7,0xa7,0x81,0x70,0x6d,0x10,0xc2,0xe2,0x32,0x50,0x6b,0x4f,0x0,
0x66,0xfa,0x30,0xc4,0xca,0x1d,0xfd,0x26,0xcc,0x1f,0x92,0x5b,0x48,0x5a,0x23,0x6d,
0x74,0x77,0x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a,0x9d,0x3f,0x96,0x58,0x5f,0x36,0x80,0x10,0x2c,0x9f,0x12,0xaa,
0xd0,0x18,0xfc,0x5c,0xb5,0x25,0x2,0x89,0xea,0xfd,0x11,0xb3,0x64,0x14,0x12,0x55,
0xfa,0x20,0x71,0xf5,0xc,0x44,0x8b,0x36,0x45,0xcc,0xf9,0x8e,0x73,0x58,0x39,0xa3,
0x88,0x79,0x8c,0x3,0x4,0x51,0xb5,0x1f,0x43,0x58,0x3d,0x7d,0xb3,0x70,0xd5,0x54,
0x50,0xef,0x88,0x3,0xee,0xf2,0x9,0x88,0x51,0xe0,0x0,0xca,0xb5,0x41,0xc0,0x2d,
0x72,0x43,0xb4,0x48,0x13,0xcc,0xe,0x8d,0x19,0x25,0x6b,0x3e,0xe5,0x19,0xbc,0xc5,
0x13,0x74,0x14,0xea,0x66,0xde,0x16,0xad,0x9c,0xa,0xca,0xeb,0xa2,0x10,0xab,0x74,
0xc,0xb0,0xb,0x46,0x83,0x72,0x43,0x8,0x62,0xa4,0x58,0x3,0x3d,0x79,0xe8,0x69,
0x56,0xde,0x68,0x62,0x7d,0xd9,0x0,0x82,0xbb,0xd0,0x23,0x50,0xd4,0x30,0xf3,0x77,
0xa5,0xba,0x40,0x24,0x58,0x33,0xd,0x31,0xf2,0x87,0x23,0x41,0xd9,0x38,0x24,0x5a,
0xe9,0x8b,0x68,0x11,0xc6,0xcf,0x99,0xd9,0xe,0xc4,0xf3,0xa1,0x1,0x4,0xbf,0x7c,
0x22,0x85,0xb7,0x68,0xfc,0x5a,0xfe,0x8a,0x29,0x48,0x79,0x6d,0x38,0x70,0x2a,0x3c,
0x80,0x9e,0x65,0x83,0x14,0x56,0xf9,0x1,0x3b,0x6f,0x2c,0xd0,0x42,0x8d,0x7e,0x66,
0xe5,0x8d,0x22,0xde,0x97,0xd,0x20,0xb8,0xa5,0xe3,0xb4,0xf8,0xcb,0x7d,0x3f,0xe1,
0x2f,0xf3,0x6,0x85,0xc6,0x20,0x60,0x16,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,
0x3d,0xd9,0xe6,0xa,0xa6,0x4b,0x44,0xce,0x45,0x12,0xde,0x46,0xa1,0x85,0x98,0xdf,
0x47,0x5a,0x5b,0xd3,0x80,0xbb,0xca,0x1b,0x69,0xac,0x8b,0x3,0x4e,0x9e,0x33,0x62,
0xce,0x75,0x28,0xe6,0xe4,0x39,0xbd,0x71,0xef,0xfc,0x5e,0x37,0x94,0xd7,0x46,0x30,
0x95,0x5b,0xa3,0x2e,0x6a,0xb4,0xc7,0x83,0x52,0x5b,0x38,0xf0,0x97,0x7b,0x83,0x5a,
0x6b,0xc,0xbe,0xbf,0xd4,0x2f,0xec,0xbc,0xb1,0x44,0x2e,0x79,0x12,0xbe,0x17,0x57,
0x90,0x8d,0x72,0x6b,0xe4,0x3,0xad,0xce,0x64,0xc4,0x5f,0x3d,0x5,0xc4,0x35,0x7e,
0x48,0x61,0xc5,0x34,0xa0,0x27,0xd,0xfd,0x0,0xb3,0x45,0x44,0x3f,0x23,0x75,0xb5,
0x51,0x9a,0x72,0x73,0x28,0x52,0xdb,0x98,0x0,0x9c,0xa5,0x1e,0xa0,0x8a,0x8d,0xab,
0xd9,0x39,0xa3,0x11,0x33,0x73,0x78,0x89,0xac,0x79,0x7b,0x13,0x80,0xb5,0xf,0x4d,
0xdc,0x18,0x7c,0x50,0xd2,0x1c,0x6,0xe2,0xa6,0x20,0xc4,0x59,0xec,0x86,0xbf,0x87,
0xc5,0xf7,0x11,0xfb,0x85,0x95,0x3b,0x9a,0xe8,0x67,0x18,0x84,0x2b,0x7d,0x8d,0x15,
0x1a,0x82,0xbf,0x57,0x5b,0x17,0x3,0xdc,0x15,0x13,0x40,0x58,0x39,0x11,0xa3,0xc9,
0x78,0x3f,0xbb,0xca,0xce,0x1b,0x33,0xe8,0xe3,0x33,0x1c,0x82,0xe5,0x53,0x43,0x14,
0x6a,0x3,0x90,0xca,0xba,0x48,0x60,0x2d,0x1a,0x8b,0x14,0x57,0xfb,0x3,0x36,0x66,
0x44,0x8c,0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7c,0x6d,0x62,0xef,0x3a,
0xe6,0x37,0xee,0x7e,0x46,0x3b,0x39,0x53,0x26,0x4e,0xf4,0xbe,0xa2,0xa5,0x6f,0x98,
0xc2,0x93,0x68,0x29,0x91,0xa9,0xf4,0xde,0x34,0x51,0xbe,0x18,0xf9,0x91,0xba,0xef,
0x5,0x5f,0x93,0x8b,0xaf,0x55,0xc6,0xef,0x45,0x7a,0x1d,0xf2,0x1b,0x71,0x3f,0x59,
0x4b,0x56,0xe6,0x65,0xb6,0x1f,0x7e,0x6e,0x98,0xb5,0x71,0xb1,0x86,0x47,0x18,0x95,
0xa1,0x66,0x42,0x21,0x51,0x19,0x78,0x9b,0xe3,0xfd,0x19,0x5f,0x27,0x8b,0xf3,0xae,
0xd9,0x53,0xf6,0xae,0x9d,0x55,0x20,0x75,0xaf,0x21,0xc5,0xf5,0x4d,0xa6,0x6b,0x45,
0x97,0xee,0xbf,0x68,0x74,0xf4,0xd6,0xa3,0xa7,0x21,0xdb,0x3f,0x43,0x6,0xf3,0xb6,
0xb7,0xa9,0x85,0x2e,0xf9,0xab,0x67,0x94,0x38,0x6f,0x78,0x9b,0xe3,0xf7,0x85,0x7f,
0x8f,0xdf,0x1b,0xbf,0x87,0x64,0xba,0xee,0x75,0xe5,0xb9,0x9b,0xe4,0x95,0xe7,0xbf,
0x7e,0x67,0xd7,0x57,0x3f,0x21,0xcf,0xfa,0x77,0x91,0x42,0x7c,0xf3,0x61,0xc5,0xd8,
0x9c,0x7f,0x93,0xcb,0x57,0x7a,0x9d,0x26,0x7e,0x6f,0xb4,0x3e,0xf4,0xda,0x74,0x2c,
0x79,0xfb,0xa5,0xa4,0x75,0x1f,0xff,0x80,0xca,0xcf,0xde,0x42,0x66,0x19,0xab,0x11,
0xd3,0x6f,0xd4,0xf2,0xff,0xf1,0x94,0xd2,0xf7,0x35,0xe0,0x63,0x11,0x9f,0x96,0xf5,
0x12,0xdf,0x96,0x8d,0x8f,0x42,0x37,0x34,0x20,0xd5,0xd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a6,0x28,
0x65,0x3f,0x68,0x52,0xe7,0x7f,0x3f,0x14,0xcb,0x3,0x31,0x33,0x10,0x37,0xd8,0x33,
0xfc,0xef,0x61,0x67,0xf8,0xdf,0xfe,0x99,0x1,0xd8,0x9a,0x62,0x0,0x36,0xc1,0x18,
0x80,0x4d,0x30,0x6,0x60,0x3b,0x8e,0x1,0xd8,0x4,0x63,0x0,0x36,0xc1,0x18,0xfe,
0xff,0x1,0x61,0xa0,0xba,0x7f,0xf2,0x40,0x33,0x40,0xb8,0x1f,0x88,0xdb,0x41,0xf3,
0x6d,0x40,0xfc,0x18,0x8a,0xbf,0x83,0xe7,0x8b,0x40,0x11,0xae,0xc0,0x80,0x68,0x87,
0x39,0x90,0xd8,0xca,0xd1,0xf4,0x88,0x20,0xbb,0xfe,0x9d,0x7a,0xea,0xb1,0xa0,0x66,
0xe5,0x3a,0xb2,0xe6,0x43,0xd5,0x35,0x35,0x59,0xf4,0xec,0x3d,0x24,0x79,0xb4,0x1d,
0xc8,0xb2,0x5f,0x51,0x59,0x99,0x4d,0xd7,0xc1,0xab,0x92,0x99,0x5b,0x40,0x7,0xc8,
0x55,0x62,0x40,0xec,0xcb,0x24,0xda,0xbc,0xfe,0x63,0xf7,0xa7,0x69,0x14,0x4d,0x82,
0xad,0x57,0x5,0xe9,0x23,0x69,0x9f,0x9a,0x6e,0x7b,0x99,0xb6,0xd4,0x94,0xf8,0x1f,
0xec,0x19,0x86,0xbe,0x24,0x7b,0x0,0xa,0xc4,0x16,0xa7,0x56,0x8,0xf6,0x5,0x3e,
0x65,0x8d,0xd6,0x16,0x24,0x47,0x3f,0x4f,0x92,0x25,0xb3,0xcc,0xaa,0xdc,0x23,0x7c,
0x6d,0x5e,0x64,0x9f,0xff,0x23,0x3a,0x21,0x42,0x19,0x68,0xc6,0x27,0xee,0x7a,0x27,
0xb2,0xfd,0x21,0xb5,0x3c,0x33,0x4d,0x74,0x56,0xf4,0x53,0xb6,0x44,0x7d,0xb2,0xfc,
0x1,0x2,0xe2,0x8b,0x53,0xb6,0xf0,0xb4,0xba,0x2d,0x22,0x57,0x3f,0x6f,0xad,0xbb,
0x84,0xe0,0xb4,0x90,0x57,0x1c,0xe5,0x96,0x64,0xfb,0x83,0xb7,0xdb,0x37,0x84,0xbb,
0xd9,0xe9,0x29,0x6b,0xac,0x16,0xd9,0xfe,0xe0,0xea,0x70,0x59,0xc4,0x56,0x64,0xb4,
0x90,0x5c,0xfd,0xec,0x39,0xe6,0xfc,0xec,0x95,0x66,0xf,0x58,0x73,0xf4,0xc8,0x5e,
0xf7,0xc7,0x5e,0x6a,0xa5,0xc6,0xec,0xaf,0x8,0xae,0xf,0xfe,0xfd,0x67,0x60,0xf8,
0x3,0xc4,0x3f,0x40,0x18,0x98,0x4b,0xfe,0x34,0x3,0x71,0x3d,0x50,0xdc,0x1e,0x82,
0xff,0x83,0xe6,0xa8,0xfb,0x81,0xf8,0x3c,0x10,0x1f,0x7,0xe2,0xc7,0x40,0xfc,0x19,
0x88,0x3f,0x2,0xf1,0x4f,0x6,0x6,0x0,0x1e,0x33,0xe3,0xa7,
// C:/JESS_DRIVE/Projects_Programming/C++/C++001_KanbanBoard/Kanban_Board/Kanban_Board.ico
0x0,0x0,0xa,0x13,
0x0,
0x0,0x25,0xbe,0x78,0x9c,0xed,0x58,0xd9,0x73,0x5b,0x67,0x15,0xbf,0x69,0x42,0xd2,
0x84,0x42,0x49,0x1f,0x4a,0x29,0xcd,0xc,0x94,0x32,0x30,0xc0,0x43,0x29,0xf,0x30,
0x30,0xc3,0xb,0x33,0xbc,0x95,0x19,0xa6,0x65,0x78,0x49,0x13,0x87,0x24,0x4d,0xe8,
0x30,0xa4,0x10,0x5a,0x4a,0x63,0xc7,0x8b,0x36,0xdb,0xb2,0x25,0xaf,0xb2,0x2d,0xdb,
0x92,0x6d,0xc9,0xb2,0x6c,0xc9,0xb2,0xac,0xc5,0xf2,0xbe,0x27,0xf1,0x1a,0x2f,0x89,
0x13,0x3b,0xb1,0x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,0x0,0x27,0x81,0xcf,0xfc,0x9f,0xf3,0xd3,0xeb,0xe9,0xf5,0xf4,0x7a,
0x7a,0x3d,0xbd,0x3e,0xdf,0xf5,0x80,0x3f,0xf6,0x6b,0x5a,0xde,0x17,0xf4,0x93,0xde,
0x3f,0xca,0x1f,0xfb,0x94,0xdf,0x43,0xff,0x3b,0x39,0xaa,0xf2,0xca,0xb4,0x4c,0xfb,
0xff,0x17,0xcb,0xe7,0x35,0xed,0x3f,0x4a,0xea,0x72,0xed,0x5e,0xfe,0x17,0xd7,0x4d,
0xe9,0x66,
};
static const unsigned char qt_resource_name[] = {
// icon
0x0,0x4,
0x0,0x6,0xfa,0x5e,
0x0,0x69,
0x0,0x63,0x0,0x6f,0x0,0x6e,
// Pencil.ico
0x0,0xa,
0x9,0xf5,0x97,0x1f,
0x0,0x50,
0x0,0x65,0x0,0x6e,0x0,0x63,0x0,0x69,0x0,0x6c,0x0,0x2e,0x0,0x69,0x0,0x63,0x0,0x6f,
// Kanban_Board.ico
0x0,0x10,
0x9,0x93,0x5c,0x1f,
0x0,0x4b,
0x0,0x61,0x0,0x6e,0x0,0x62,0x0,0x61,0x0,0x6e,0x0,0x5f,0x0,0x42,0x0,0x6f,0x0,0x61,0x0,0x72,0x0,0x64,0x0,0x2e,0x0,0x69,0x0,0x63,0x0,0x6f,
};
static const unsigned char qt_resource_struct[] = {
// :
0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,
// :/icon
0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x2,
// :/icon/Kanban_Board.ico
0x0,0x0,0x0,0x28,0x0,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x90,0x31,
// :/icon/Pencil.ico
0x0,0x0,0x0,0xe,0x0,0x1,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,
};
#ifdef QT_NAMESPACE
# define QT_RCC_PREPEND_NAMESPACE(name) ::QT_NAMESPACE::name
# define QT_RCC_MANGLE_NAMESPACE0(x) x
# define QT_RCC_MANGLE_NAMESPACE1(a, b) a##_##b
# define QT_RCC_MANGLE_NAMESPACE2(a, b) QT_RCC_MANGLE_NAMESPACE1(a,b)
# define QT_RCC_MANGLE_NAMESPACE(name) QT_RCC_MANGLE_NAMESPACE2( \
QT_RCC_MANGLE_NAMESPACE0(name), QT_RCC_MANGLE_NAMESPACE0(QT_NAMESPACE))
#else
# define QT_RCC_PREPEND_NAMESPACE(name) name
# define QT_RCC_MANGLE_NAMESPACE(name) name
#endif
#ifdef QT_NAMESPACE
namespace QT_NAMESPACE {
#endif
bool qRegisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *);
bool qUnregisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *);
#ifdef QT_NAMESPACE
}
#endif
int QT_RCC_MANGLE_NAMESPACE(qInitResources_resource)();
int QT_RCC_MANGLE_NAMESPACE(qInitResources_resource)()
{
QT_RCC_PREPEND_NAMESPACE(qRegisterResourceData)
(0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
return 1;
}
int QT_RCC_MANGLE_NAMESPACE(qCleanupResources_resource)();
int QT_RCC_MANGLE_NAMESPACE(qCleanupResources_resource)()
{
QT_RCC_PREPEND_NAMESPACE(qUnregisterResourceData)
(0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
return 1;
}
namespace {
struct initializer {
initializer() { QT_RCC_MANGLE_NAMESPACE(qInitResources_resource)(); }
~initializer() { QT_RCC_MANGLE_NAMESPACE(qCleanupResources_resource)(); }
} dummy;
}
|
e0dc525d040fada6f2571d8def5a8ff0de6ce873 | efa1cddfa8b779306af6837552ca70cac99672b0 | /OldProjects/DTIServer_TrafficAccess/DTIServ_http_v2/2.Project/MainUI/MainFrm.cpp | b948dd0a2ff7b554513f6b4d4710e1397f328a00 | [] | no_license | lanicon/MyRepository | f21cee83a2fb97e730b1e324d807b51495f4d64e | 6f2e61343fccbaa7ad1f4213df5efc9eb6502c65 | refs/heads/master | 2023-03-14T05:01:01.114757 | 2021-02-26T03:17:01 | 2021-02-26T03:17:01 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,802 | cpp | MainFrm.cpp | // MainFrm.cpp : CMainFrame 类的实现
//
#include "stdafx.h"
#include "MainUI.h"
#include "SheetConfig.h"
#include ".\mainfrm.h"
#include "LogView.h"
#include "RawTfcView.h"
#include "ParsedTfcView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
extern CMainUIApp theApp;
// CMainFrame
IMPLEMENT_DYNAMIC(CMainFrame, CMDIFrameWnd)
BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
ON_WM_CREATE()
ON_WM_CLOSE()
ON_MESSAGE(UM_NEW_IMCMSG,OnRecvUserMsg)
ON_MESSAGE(WM_ICONNOTIFY,OnTrayNotification)
ON_WM_SIZE()
ON_COMMAND(ID_VIEW_CONFIG, OnViewConfig)
ON_BN_CLICKED(IDC_DLGBAR_BTN, OnBnClickedDlgbarBtn)
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, // 状态行指示器
/*ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,*/
ID_INDICATOR_CORP, //公司名称
};
// CMainFrame 构造/析构
CMainFrame::CMainFrame()
{
// TODO: 在此添加成员初始化代码
m_bCloseTip = TRUE;
}
CMainFrame::~CMainFrame()
{
}
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style = WS_OVERLAPPED | WS_SYSMENU | WS_BORDER | WS_MINIMIZEBOX |WS_SIZEBOX|
WS_MAXIMIZEBOX | WS_MAXIMIZE;
cs.style &= ~FWS_ADDTOTITLE;
// Size the window to full screen size
cs.cy = ::GetSystemMetrics(SM_CYSCREEN);
cs.cx = ::GetSystemMetrics(SM_CXSCREEN);
return TRUE;
}
// CMainFrame 诊断
#ifdef _DEBUG
void CMainFrame::AssertValid() const
{
CMDIFrameWnd::AssertValid();
}
void CMainFrame::Dump(CDumpContext& dc) const
{
CMDIFrameWnd::Dump(dc);
}
#endif //_DEBUG
BOOL CMainFrame::CreateExToolbar()
{
#if 0
if(!m_wndRebar.Create(this,RBS_BANDBORDERS,
WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS|WS_CLIPCHILDREN|CBRS_TOP|CBRS_FLYBY| CBRS_SIZE_DYNAMIC ))
{
return FALSE;
}
//m_wndRebar.EnableDocking(CBRS_ALIGN_ANY);
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC))
{
return FALSE;
}
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
/*m_wndRebar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndRebar);*/
m_wndToolBar.GetToolBarCtrl().SetButtonWidth(40, 80);
struct TButAttri
{
UINT nID;
CString strText;
UINT nStyle;
UINT nIconRsc;
};
TButAttri btnArray[] = { { ID_START_SERVICE, _T("启动服务"), TBBS_BUTTON, IDI_TOOLBAR_START },
{ ID_STOP_SERVICE, _T("停止服务"), TBBS_BUTTON, IDI_TOOLBAR_STOP },
{ 0, _T(""), TBBS_SEPARATOR, 0 },
{ ID_VIEW_OPTION, _T("选项"), TBBS_BUTTON, IDI_TOOLBAR_CONFIG },
{ ID_VIEW_NETLOG, _T("日志"), TBBS_BUTTON, IDI_TOOLBAR_LOGS},
{ 0, "", TBBS_SEPARATOR, 0 },
{ ID_APP_EXIT, _T("退出"), TBBS_BUTTON, IDI_TOOLBAR_EXIT }
};
int iBtnCount = sizeof(btnArray)/sizeof(btnArray[0]);
CImageList imgList;
//
imgList.Create(16,16, ILC_COLOR8|ILC_MASK, iBtnCount,1);
imgList.SetBkColor(::GetSysColor(COLOR_BTNFACE));
for (int ii=0; ii<iBtnCount; ii++)
{
if (btnArray[ii].nID !=0 )
{
imgList.Add(AfxGetApp()->LoadIcon(btnArray[ii].nIconRsc));
}
}
m_wndToolBar.GetToolBarCtrl().SetImageList(&imgList); //
imgList.Detach();
//
imgList.Create(17, 17, ILC_COLOR8|ILC_MASK,iBtnCount,1);
imgList.SetBkColor(::GetSysColor(COLOR_BTNFACE));
for ( int ii=0; ii<iBtnCount; ii++ )
{
if (btnArray[ii].nID !=0 )
{
imgList.Add(AfxGetApp()->LoadIcon(btnArray[ii].nIconRsc));
}
}
m_wndToolBar.GetToolBarCtrl().SetHotImageList(&imgList); // Hot image list
imgList.Detach();
// 改变属性
m_wndToolBar.ModifyStyle(0, TBSTYLE_FLAT |CBRS_TOOLTIPS | TBSTYLE_TRANSPARENT|TBBS_CHECKBOX );
m_wndToolBar.SetButtons(NULL,iBtnCount);
for (int ii=0,iImg=0; ii<iBtnCount; ii++,iImg++)
{
if (btnArray[ii].nID !=0 )
{
m_wndToolBar.SetButtonInfo(ii, btnArray[ii].nID,btnArray[ii].nStyle, iImg);
m_wndToolBar.SetButtonText(ii, btnArray[ii].strText);
}
else
{
m_wndToolBar.SetButtonInfo(ii,0,btnArray[ii].nStyle, 0);
iImg--;
}
}
// 设置按钮的大小
CRect rectToolBar;
m_wndToolBar.GetItemRect(0, &rectToolBar);
m_wndToolBar.SetSizes(rectToolBar.Size(), CSize(15,15));
// 在Rebar中加入ToolBar
m_wndRebar.AddBar(&m_wndToolBar);
// 改变一些属性
REBARBANDINFO rbbi;
rbbi.cbSize = sizeof(rbbi);
rbbi.fMask = RBBIM_CHILDSIZE | RBBIM_IDEALSIZE | RBBIM_SIZE|RBBIM_BACKGROUND;;//
rbbi.cxMinChild = rectToolBar.Width();
rbbi.cyMinChild = rectToolBar.Height();
// 下面这行代码是为工具条加入背景位图,请注意上rbbi.fMask中RBBIM_BACKGROUND标志
//rbbi.hbmBack = LoadBitmap(::AfxGetInstanceHandle(), MAKEINTRESOURCE(IDB_TOOLBAR_BKG));
rbbi.cx = rbbi.cxIdeal = rectToolBar.Width() * 10;
m_wndRebar.GetReBarCtrl().SetBandInfo(0, &rbbi);
imgList.DeleteImageList();
#endif
return TRUE;
}
void CMainFrame::AddShellNotify()
{
m_hTaskIconData.cbSize = sizeof(NOTIFYICONDATA);
m_hTaskIconData.hWnd = m_hWnd;;
m_hTaskIconData.uID = ID_TASKBARICON; //发出的消息中的wParam参数
m_hTaskIconData.uFlags = NIF_ICON|NIF_MESSAGE|NIF_TIP;
m_hTaskIconData.uCallbackMessage = WM_ICONNOTIFY; //点击托盘图标系统发出的消息(即发出的消息中的lParam参数)
m_hTaskIconData.hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
CString strAppName;
strAppName.LoadString(AFX_IDS_APP_TITLE);
strcpy(m_hTaskIconData.szTip, strAppName);
Shell_NotifyIcon(NIM_ADD, &m_hTaskIconData);
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CMDIFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!CreateExToolbar())
return -1;
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators,
sizeof(indicators)/sizeof(UINT)))
{
TRACE0("未能创建状态栏\n");
return -1; // 未能创建
}
// TODO: Delete these three lines if you don't want the toolbar to
// be dockable
/*m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);*/
// 如果需要创建DlgBar,则定义宏_CREAT_DLGBAR
#ifdef _CREAT_DLGBAR
if (!m_wndDialogBar.CreateSelf(this, CBRS_TOP|CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC))
{
TRACE0("Failed to create dialog bar\n");
return -1; // fail to create
}
//SetDlgItemText(IDC_DLGBAR_BTN, _T("按钮(&A)"));
/*m_wndDialogBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndDialogBar);*/
#endif
#ifdef _DEBUG
// 得到程序名称
CString strAppName;
strAppName.LoadString(AFX_IDS_APP_TITLE);
#endif
AddShellNotify();
return 0;
}
void CMainFrame::ActiveEvents()
{
StartTimers();
//
CRawTfcView* pRoadView = (CRawTfcView*)(theApp.GetView(RUNTIME_CLASS(CRawTfcView)));
IMsgCreateTfcView msg1;
msg1.pRefWnd = pRoadView;
NbsSendModuleMsg(&msg1);
//
CParsedTfcView* pLinkView = (CParsedTfcView*)(theApp.GetView(RUNTIME_CLASS(CParsedTfcView)));
TImcMsg msg2(EMSG_CREATE_TFCPARASEVIEW,ID_MODULE_USERIF,ID_MODULE_DATABASE);
msg2.m_wParam = (WPARAM)pLinkView;
NbsSendModuleMsg(&msg2);
}
void CMainFrame::StartTimers()
{
}
void CMainFrame::StopTimers()
{
}
void CMainFrame::OnClose()
{
Shell_NotifyIcon(NIM_DELETE, &m_hTaskIconData);
if (m_bCloseTip)
{
CString strTip = "确定要关闭程序?";
int iRC = MessageBox(strTip,"安全提示",
MB_ICONQUESTION|MB_YESNOCANCEL|MB_DEFBUTTON2);
if (iRC==IDYES)
{
IMsgAppLogs aLog;
aLog.iLogLevel = IMsgAppLogs::ELL_WARNING;
aLog.strComments.Format(_T("用户选择关闭程序!"));
NbsSendModuleMsg(&aLog);
//
NbsTermination();
//---------------------------
CMDIFrameWnd::OnClose();
}
}
else
{
CMDIFrameWnd::OnClose();
}
}
void CMainFrame::OnFrameMinimize()
{
Shell_NotifyIcon(NIM_ADD, &m_hTaskIconData); //加入图标
ShowWindow(SW_HIDE); //隐藏窗体
}
LRESULT CMainFrame::OnTrayNotification(WPARAM wParam, LPARAM lParam)
{
//如果在托盘图标上双击左键
if ((wParam == ID_TASKBARICON) &&
(lParam == WM_LBUTTONDBLCLK))
{
ShowWindow(SW_MAXIMIZE); //显示窗体
Shell_NotifyIcon(NIM_DELETE, &m_hTaskIconData); //删除系统托盘图标
}
return 0;
}
void CMainFrame::OnSize(UINT nType, int cx, int cy)
{
CMDIFrameWnd::OnSize(nType, cx, cy);
//
if ( nType == SIZE_MINIMIZED )
{
OnFrameMinimize();
}
}
// Option
void CMainFrame::OnViewConfig()
{
CSheetConfig dlgCfg("配置");
dlgCfg.DoModal();
}
LRESULT CMainFrame::OnRecvUserMsg(WPARAM wParam,LPARAM lParam)
{
PTImcMsg pUserMsg = (PTImcMsg)wParam;
ASSERT(pUserMsg!=NULL);
WORD wMsgType = pUserMsg->GetMsgType();
PIMsgAppLogs pNewLog;
if (wMsgType==ESYS_NEW_LOG)
{
// 向各视图发送消息
pNewLog = (PIMsgAppLogs)wParam;
// 显示最新消息
int iIndex = m_wndStatusBar.CommandToIndex(ID_SEPARATOR);
m_wndStatusBar.SetPaneText(iIndex,pNewLog->strComments);
//
CLogView* pLogView = (CLogView*)(theApp.GetView(RUNTIME_CLASS(CLogView)));
if ( pLogView->GetSafeHwnd()!=NULL )
{
pLogView->AddLiveLog(pNewLog);
}
}
return 0L;
}
void CMainFrame::OnBnClickedDlgbarBtn()
{
// TODO: 在此添加控件通知处理程序代码
}
|
51ee836e83a65ca9ae17bb00e72cd9caa837e498 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/42/185.c | 0b96688218d877adafa862ac28d76430dd8a7f73 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | c | 185.c | int main()
{
int sum=1,j,i,k=0,n,m,a[101001]={0};
cin>>n;
for(i=1;i<=n;i++)
{
cin>>a[i];
}
cin>>m;
for(i=1,j=1;j<=n;j++)
{
if(a[j]!=m)
a[i++]=a[j];
}
for(k=1;k<=i-1;k++)
{
if(k==1)
{
cout<<a[k];
}
else
{
cout<<" "<<a[k];
}
}
return 0;
}
|
7ed99d646a1eeb349d0ae73f486e6acd100b49e7 | 66257fa9bf3025d4398d11d01f19e559a350ee5b | /SDA/GUI_old/ClassEditor.h | bb31f8dc1dac95ca3ff94c9d0c92df3d901590de | [] | no_license | Fleynaro/MultiPlayer | 79a7e3e646ef23f5851d5ecc257ad0d77adc6ca1 | eb4310e0c61ab7126b3e3e31b322add999cef44b | refs/heads/master | 2023-06-12T16:00:53.713952 | 2021-05-14T14:14:15 | 2021-05-14T14:14:15 | 233,058,852 | 6 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 40,275 | h | ClassEditor.h | #pragma once
#include "Windows/ItemLists/DataTypeList.h"
#include "GUI/Signature.h"
#include "AddressInput.h"
using namespace CE;
namespace GUI::Widget
{
//MY TODO: (+) каждое поле-класс можно открыть в новом окне
//MY TODO: (+) обновлять не весь ClassHierarchy, а только детей
//MY TODO: (+) не передавать через параметр имя запроса
//MY TODO: окна по имени дублируются друг в друга
//MY TODO: (+) смена адреса(сделать спец. ввод)
//MY TODO: vtable
//MY TODO: (+) stack overflow, сравнивать по адресу
//MY TODO: (+) неиспользуемые ячейки
//MY TODO: (+) предугадывание типа ячейки(указатель, float)
//MY TODO: (+) выделение классов, панель справа для выдел. класса, указание в ней названия, отн. и абс. размера класса
//MY TODO: (+) множественное выделение ячеек, добавление типа ячеейкам(как в гидре!)
//MY TODO: (+) несколько классов могут фильтроваться одной панелью
//MY TODO: getWindow()->showConfirm(), showError(), showWarning(), ....
//MY TODO: если объект большой по размеру, то ставить определенные чекбоксы
//MY TODO: emptyFields для вложенных классов
//MY TODO: fast кнопки в панели для быстрого добавления типов
//MY TODO: (+) адрес - это всплывающие окно, где отображается подробная инфа об адресе: + действия по записи значений, изменения прав и т.д
//MY TODO: есть известные и неизвестные функции: чекбокс - show known functions(+ кол-во в фаст панели)
//MY TODO: функции одного класса расположены последовательно в памяти => автоматические сделать генерацию списка таких функций
class ClassEditor : public Container
{
public:
class ClassHierarchy : public GUI::Container
{
public:
class ClassContent : public TreeNode
{
public:
class Byte : public CE::DataType::Byte
{
public:
Byte(int maxBytesCount)
: m_maxBytesCount(maxBytesCount)
{}
std::string getViewValue(void* addr) override {
return
/*Generic::String::NumberToHex(*(uint64_t*)addr) + " | " +*/
std::to_string(*(int*)addr) + "i | " +
std::to_string(*(float*)addr) + "f | " +
std::to_string(*(double*)addr).substr(0, 15) + "d";
}
protected:
int m_maxBytesCount;
};
class ByteGroup : public CE::DataType::Array
{
public:
ByteGroup(int bytesCount)
: CE::DataType::Array(new Byte(bytesCount), bytesCount)
{}
std::string getViewValue(void* addr) override {
return getType()->getViewValue(addr);
}
};
class TypeViewValue : public Elements::Text::ColoredText
{
public:
TypeViewValue(CE::DataType::Type* type, void* addr, ColorRGBA color)
: m_type(type), m_addr(addr), Elements::Text::ColoredText("", color)
{}
~TypeViewValue() {
if (m_valueEditor != nullptr)
m_valueEditor->destroy();
}
void render() override {
std::string addrText = "0x" + Generic::String::NumberToHex((uint64_t)m_addr);
if (Address(m_addr).canBeRead()) {
setText(addrText + " -> " + m_type->getViewValue(m_addr));
}
else {
setText(addrText + " cannot be read.");
}
Elements::Text::ColoredText::render();
if (ImGui::IsItemHovered()) {
ImGui::SetMouseCursor(ImGuiMouseCursor_Hand);
}
if (ImGui::IsItemClicked(0)) {
if (m_valueEditor == nullptr) {
if (Address(m_addr).canBeRead()) {
m_valueEditor = new PopupContainer(false, 0);
m_valueEditor->setParent(this);
m_valueEditor->addItem(new AddressValueEditor(m_addr, m_type));
m_valueEditor->setVisible();
m_valueEditor->setHideByClick(true);
}
}
else {
m_valueEditor->setVisible();
}
}
if (m_valueEditor != nullptr) {
m_valueEditor->show();
}
}
private:
CE::DataType::Type* m_type;
void* m_addr;
PopupContainer* m_valueEditor = nullptr;
};
class EmptyField
: public TreeNode
{
public:
EmptyField(ClassContent* classContent, int relOffset, CE::DataType::Type* type)
: m_classContent(classContent), m_relOffset(relOffset), m_type(type)
{
addFlags(ImGuiTreeNodeFlags_FramePadding);
m_eventClick = Events::Listener(
std::function([&](Events::ISender* sender) {
m_classContent->m_classHierarchy->m_classEditor->selectClassFields(this, Keys::IsShiftPressed(), Keys::IsCtrlPressed());
})
);
m_eventClick->setCanBeRemoved(false);
getLeftMouseClickEvent() += m_eventClick;
m_type->addOwner();
}
~EmptyField() {
if (m_headBaseInfo != nullptr)
m_headBaseInfo->destroy();
m_type->free();
if(m_classContent->m_classHierarchy->m_classEditor->m_classFieldSelected == this)
m_classContent->m_classHierarchy->m_classEditor->unselectClassField(this);
delete m_eventClick;
}
void renderHeader() override {
if (m_headBaseInfo == nullptr) {
std::string offsetText;
if (m_classContent->m_classHierarchy->m_classEditor->isHexDisplayEnabled())
offsetText = "0x" + Generic::String::NumberToHex(getAbsoluteOffset());
else offsetText = std::to_string(getAbsoluteOffset());
m_headBaseInfo = new Container;
(*m_headBaseInfo)
.text(offsetText + " ", ColorRGBA(0xfaf4b6FF))
.sameLine()
.addItem(new Units::Type(m_type))
.sameText(" " + getFieldName() + " ");
if (m_classContent->m_baseAddr != nullptr) {
(*m_headBaseInfo)
.sameLine()
.addItem(new TypeViewValue(m_type, m_classContent->getAddressByRelOffset(m_relOffset), ColorRGBA(0x919191FF)));
}
m_headBaseInfo->setParent(this);
}
ImGui::SameLine();
m_headBaseInfo->show();
}
int getAbsoluteOffset() {
return m_classContent->m_baseOffset + m_relOffset;
}
virtual std::string getFieldName() {
return "<empty>";
}
ClassContent* m_classContent;
int m_relOffset;
CE::DataType::Type* m_type;
protected:
Container* m_headBaseInfo = nullptr;
Events::SpecialEventType::EventHandlerType* m_eventClick;
};
friend class EmptyField;
class Field
: public EmptyField
{
public:
Field(ClassContent* classContent, int relOffset, DataType::Class::Field* field)
: EmptyField(classContent, relOffset, field->getType()), m_field(field)
{}
std::string getFieldName() override {
return m_field->getName();
}
private:
DataType::Class::Field* m_field;
};
class ArrayItem
: public TreeNode
{
public:
ArrayItem(Field* field, int index)
: m_arrayField(field), m_index(index)
{
addFlags(ImGuiTreeNodeFlags_FramePadding | ImGuiTreeNodeFlags_Leaf);
}
~ArrayItem() {
if (m_headBaseInfo != nullptr)
m_headBaseInfo->destroy();
}
void renderHeader() override {
if (m_headBaseInfo == nullptr) {
std::string offsetText;
if (m_arrayField->m_classContent->m_classHierarchy->m_classEditor->isHexDisplayEnabled())
offsetText = "0x" + Generic::String::NumberToHex(getAbsoluteOffset());
else offsetText = std::to_string(getAbsoluteOffset());
m_headBaseInfo = new Container;
(*m_headBaseInfo)
.text(offsetText + " ", ColorRGBA(0xfaf4b6FF))
.sameLine()
.sameText(" [" + std::to_string(m_index) + "] ");
if (m_arrayField->m_classContent->m_baseAddr != nullptr) {
(*m_headBaseInfo)
.sameLine()
.addItem(new TypeViewValue(getArrayItemType(), m_arrayField->m_classContent->getAddressByRelOffset(getRelOffset()), ColorRGBA(0x919191FF)));
}
m_headBaseInfo->setParent(this);
}
ImGui::SameLine();
m_headBaseInfo->show();
}
int getOffset() {
return m_index * getArrayItemType()->getSize();
}
int getRelOffset() {
return m_arrayField->m_relOffset + getOffset();
}
CE::DataType::Array* getArrayType() {
return static_cast<CE::DataType::Array*>(m_arrayField->m_type);
}
CE::DataType::Type* getArrayItemType() {
return getArrayType()->getType();
}
int getAbsoluteOffset() {
return m_arrayField->getAbsoluteOffset() + getOffset();
}
private:
Container* m_headBaseInfo = nullptr;
Field* m_arrayField;
int m_index;
};
class ArrayClassViewer
: public Container
{
public:
ArrayClassViewer(ClassHierarchy* parentClassHierarchy, API::Type::Class* Class, void* arrBaseAddr, int ptrLevel)
: m_parentClassHierarchy(parentClassHierarchy), m_class(Class), m_arrBaseAddr(arrBaseAddr), m_ptrLevel(ptrLevel)
{
(*this)
.text("Item index: ").sameLine().addItem(m_indexInput = new Elements::Input::Int)
.newLine()
.addItem(m_body = new Container);
m_indexInput->getSpecialEvent() += [&](Events::ISender* sender) {
if(getIndex() >= 0)
update();
};
update();
}
void update() {
m_body->clear();
auto addr = getClassAddress();
if (addr == nullptr) {
m_body->text("Cannot read the class.");
return;
}
ClassHierarchy* classHierarchy;
m_body->addItem(
classHierarchy = new ClassHierarchy(
m_parentClassHierarchy->m_classEditor,
m_class,
addr
)
);
classHierarchy->setParentClassHierarchy(m_parentClassHierarchy);
classHierarchy->onSearch("");
}
int getIndex() {
return m_indexInput->getInputValue();
}
int getStepLength() {
return m_ptrLevel == 0 ? m_class->getClass()->getSize() : sizeof(std::uintptr_t);
}
void* getAddressInArray() {
return (void*)((std::uintptr_t)m_arrBaseAddr + getIndex() * getStepLength());
}
void* getClassAddress() {
return Address::Dereference(getAddressInArray(), m_ptrLevel);
}
private:
void* m_arrBaseAddr;
ClassHierarchy* m_parentClassHierarchy;
Elements::Input::Int* m_indexInput;
API::Type::Class* m_class;
int m_ptrLevel;
Container* m_body;
};
class Method
: public TreeNode
{
public:
Method(API::Function::Function* method, FunctionEventType::EventHandlerType* openFunctionCP = nullptr)
: m_method(method), m_openFunctionCP(openFunctionCP)
{
addFlags(ImGuiTreeNodeFlags_FramePadding | ImGuiTreeNodeFlags_Leaf);
}
~Method() {
if (m_signature != nullptr) {
m_signature->destroy();
}
}
void renderHeader() override {
if (m_signature == nullptr) {
m_signature = new Units::FunctionSignature(m_method,
nullptr,
Events::Listener(
std::function([&](Events::ISender* sender) {
m_openFunctionCP->invoke(this, m_method);
})
),
nullptr
);
m_signature->setParent(this);
}
ImGui::SameLine();
m_signature->show();
}
CE::Function::Method* getMethod() {
return m_method->getMethod();
}
private:
API::Function::Function* m_method;
Units::FunctionSignature* m_signature = nullptr;
FunctionEventType::EventHandlerType* m_openFunctionCP;
};
ClassContent(ClassHierarchy* classHierarchy, API::Type::Class* Class, bool calculateValues = false)
: ClassContent(classHierarchy, Class, calculateValues, Class->getClass()->getBaseOffset())
{}
ClassContent(ClassHierarchy* classHierarchy, API::Type::Class* Class, bool calculateValues, int baseOffset)
: m_classHierarchy(classHierarchy), m_class(Class), m_calculateValues(calculateValues), m_baseOffset(baseOffset)
{
addFlags(ImGuiTreeNodeFlags_FramePadding | ImGuiTreeNodeFlags_Bullet);
}
~ClassContent() {
if (m_className != nullptr)
m_className->destroy();
if (m_classHierarchy->m_classEditor->m_classContentSelected == this)
m_classHierarchy->m_classEditor->unselectClassContent();
}
Elements::Text::ClickedText* m_className = nullptr;
void renderHeader() override {
if (m_className == nullptr) {
m_className = new Elements::Text::ClickedText(m_class->getClass()->getName(), ColorRGBA(0xeddf91FF));
m_className->getLeftMouseClickEvent() += [&](Events::ISender* sender) {
m_classHierarchy->m_classEditor->unselectClassContent();
m_classHierarchy->m_classEditor->selectClassContent(this);
};
m_className->getMiddleMouseClickEvent() += [&](Events::ISender* sender) {
m_classHierarchy->m_classEditor->addClass(m_class, m_baseAddr);
};
m_className->setParent(this);
}
m_className->show();
}
//MY TODO: float, double, string
CE::DataType::Type* predictTypeAtAddress(void* addr, int maxSize = 8, int level = 1) {
auto alignment = reinterpret_cast<byte&>(addr) % 8;
if (alignment != 0 && alignment <= maxSize || maxSize >= 8) {
switch (alignment)
{
case 0: {
if (level <= 3) {
void* ptr = (void*)*(std::uintptr_t*)addr;
if (Address(ptr).canBeRead()) {
return new CE::DataType::Pointer(predictTypeAtAddress(ptr, 8, level + 1));
}
break;
}
}
}
}
if (level == 1 && alignment == 0 && maxSize >= 8) {
if (m_classHierarchy->m_classEditor->isEmptyFields_GroupingEnabled()) {
return new ByteGroup(8);
}
}
return new Byte(maxSize);
}
void buildFields(Container* container, const std::string& name)
{
getClass()->iterateFields([&](int& relOffset, DataType::Class::Field* classField)
{
void* fieldAddr = getAddressByRelOffset(relOffset);
EmptyField* field;
if (getClass()->isDefaultField(classField)) {
auto type = predictTypeAtAddress(fieldAddr, getClass()->getNextEmptyBytesCount(relOffset));
container->addItem(field = new EmptyField(this, relOffset, type));
relOffset += type->getSize() - 1;
}
else {
container->addItem(field = new Field(this, relOffset, classField));
}
field->addFlags(ImGuiTreeNodeFlags_Leaf, true);
m_fields.push_back(field);
bool canBeFilteredToRemove = true;
if (m_baseAddr != nullptr) {
auto fieldType = classField->getType();
auto baseType = fieldType->getBaseType();
if (baseType->getGroup() == DataType::Type::Group::Class)
{
auto apiBaseClassType = static_cast<API::Type::Class*>(m_class->getTypeManager()->getTypeById(baseType->getId()));
if (apiBaseClassType != nullptr) {
if (fieldType->isArray()) {
field->addItem(
new ArrayClassViewer(m_classHierarchy, apiBaseClassType, fieldAddr, fieldType->getPointerLvl()));
}
else {
if (fieldType->isPointer()) {
for (int i = 0; i < fieldType->getPointerLvl(); i++) {
if (!Address(fieldAddr).canBeRead())
break;
fieldAddr = (void*)*(std::uintptr_t*)fieldAddr;
}
}
if (Address(fieldAddr).canBeRead()) {
if (!fieldType->isPointer() || !m_classHierarchy->hasBaseAddress(fieldAddr)) {
ClassHierarchy* classHierarchy;
field->addItem(classHierarchy = new ClassHierarchy(m_classHierarchy->m_classEditor, apiBaseClassType, fieldAddr));
classHierarchy->setParentClassHierarchy(m_classHierarchy);
classHierarchy->onSearch(name);
m_classHierarchies.insert(classHierarchy);
}
else {
field->text("Object at the address has been already shown.");
}
}
else {
field->text("Address not valid.");
}
}
field->addFlags(ImGuiTreeNodeFlags_Leaf, false);
canBeFilteredToRemove = false;
if (m_classHierarchy->m_classEditor->isAlwaysOpen()) {
field->setOpen(true);
}
}
} else if (fieldType->isArray()) {
buildArrayItems(static_cast<Field*>(field));
field->addFlags(ImGuiTreeNodeFlags_Leaf, false);
}
}
if (canBeFilteredToRemove) {
if (m_classHierarchy->m_classEditor->isFilterEnabled() && !m_classHierarchy->m_classEditor->checkOnInputValue(*classField, name)) {
container->removeLastItem();
m_fields.pop_back();
}
}
return true;
}, m_classHierarchy->m_classEditor->isEmptyFieldsEnabled());
}
void buildArrayItems(Field* field, int maxItems = 20)
{
auto arrayType = static_cast<CE::DataType::Array*>(field->m_type);
int arrItemsCount = arrayType->getArraySize();
for (int i = 0; i < min(maxItems, arrItemsCount); i++) {
field->addItem(new ArrayItem(field, i));
}
if (arrItemsCount >= maxItems) {
field->addItem(
new Elements::Button::ButtonStd(
"Load all items",
Events::Listener(
std::function([=](Events::ISender* sender) {
field->clear();
buildArrayItems(field, 1000);
})
)
)
);
}
}
void buildMethods(Container* container, const std::string& methodName) {
for (auto method : getClass()->getMethodList()) {
auto method_ = m_class->getTypeManager()->getProgramModule()->getFunctionManager()->getFunctionById(method->getId());
if (!m_classHierarchy->m_classEditor->isFilterEnabled() || m_classHierarchy->m_classEditor->checkOnInputValue(method_, methodName)) {
container->addItem(new Method(method_));
}
}
}
void onSearch(const std::string& name)
{
clear();
m_classHierarchies.clear();
m_fields.clear();
buildFields(this, name);
ColContainer* methodContainer;
addItem(methodContainer = new ColContainer("Methods"));
buildMethods(methodContainer, name);
}
void* getAddressByRelOffset(int relOffset) {
return (void*)((std::uintptr_t)m_baseAddr + m_baseOffset + relOffset);
}
void setBaseAddress(void* addr) {
m_baseAddr = addr;
}
DataType::Class* getClass() {
return m_class->getClass();
}
API::Type::Class* m_class;
std::list<EmptyField*> m_fields;
std::set<ClassHierarchy*> m_classHierarchies;
ClassHierarchy* m_classHierarchy;
private:
void* m_baseAddr = nullptr;
int m_baseOffset;
bool m_calculateValues;
};
friend class ClassContent;
ClassHierarchy(ClassEditor* classEditor, API::Type::Class* targetClass, void* baseAddr = nullptr)
: m_classEditor(classEditor), m_targetClass(targetClass), m_baseAddr(baseAddr)
{
m_targetClass->getClass()->iterateClasses([&](DataType::Class* class_) {
auto apiClassType = static_cast<API::Type::Class*>(m_targetClass->getTypeManager()->getTypeById(class_->getId()));
if (apiClassType != nullptr) {
ClassContent* classContent = new ClassContent(this, apiClassType, baseAddr != nullptr);
addItem(classContent);
m_classContents.push_back(classContent);
if (m_classEditor->isAlwaysOpen())
classContent->setOpen(true);
/*if (m_targetClass->getClass()->getId() == class_->getId()) {
if(m_classEditor->m_classContentSelected == nullptr)
m_classEditor->selectClassContent(classContent);
}*/
}
return true;
});
}
void onSearch(const std::string& name)
{
for (auto it : m_classContents) {
it->setBaseAddress(getBaseAddress());
it->onSearch(name);
}
}
void* getBaseAddress() {
return m_baseAddr;
}
void setBaseAddress(void* addr) {
m_baseAddr = addr;
}
ClassContent::EmptyField* getFieldLocationBy(CE::DataType::Class* Class, int relOffset) {
for (auto it : m_classContents) {
if (it->getClass() == Class) {
for (auto field : it->m_fields) {
if (field->m_relOffset == relOffset) {
return field;
}
}
}
for (auto hierarchy : it->m_classHierarchies) {
auto result = hierarchy->getFieldLocationBy(Class, relOffset);
if (result != nullptr) {
return result;
}
}
}
return nullptr;
}
void setParentClassHierarchy(ClassHierarchy* classHierarchy) {
m_parentClassHierarchy = classHierarchy;
}
bool hasBaseAddress(void* addr) {
if (m_baseAddr == addr)
return true;
if(m_parentClassHierarchy != nullptr)
return m_parentClassHierarchy->hasBaseAddress(addr);
return false;
}
API::Type::Class* m_targetClass;
private:
ClassEditor* m_classEditor;
std::list<ClassContent*> m_classContents;
void* m_baseAddr = nullptr;
ClassHierarchy* m_parentClassHierarchy = nullptr;
};
class ClassFilter : public Template::FilterManager::Filter
{
public:
ClassFilter(const std::string& name, ClassEditor* classEditor)
: Filter(classEditor->getFilterManager(), name), m_classEditor(classEditor)
{}
virtual bool isFieldFilter() {
return false;
}
/*virtual bool isMethodFilter() {
return false;
}*/
protected:
ClassEditor* m_classEditor;
};
class FieldFilter : public ClassFilter
{
public:
FieldFilter(const std::string& name, ClassEditor* classEditor)
: ClassFilter(name, classEditor)
{}
bool isFieldFilter() {
return true;
}
virtual bool checkFilter(API::Type::Class* Class, DataType::Class::Field& field) = 0;
};
class ClassFilterCreator : public Template::FilterManager::FilterCreator
{
public:
ClassFilterCreator(ClassEditor* classEditor)
: m_classEditor(classEditor), FilterCreator(classEditor->getFilterManager())
{
}
Template::FilterManager::Filter* createFilter(int idx) override
{
/*switch (idx)
{
case 0: return new CategoryFilter(m_funcList);
}*/
return nullptr;
}
private:
ClassEditor* m_classEditor;
};
AddressInput* m_classHierarchyAddressInput;
ColContainer* m_classEditorContainer;
ColContainer* m_classFieldContainer;
Elements::Input::Text* m_searchInput;
TabBar* m_classesTabBar;
ClassEditor()
{
const int width = 250;
getFilterManager()->setParent(this);
m_eventUpdateCB = Events::Listener(
std::function([&](Events::ISender* sender) {
update();
})
);
m_eventUpdateCB->setCanBeRemoved(false);
(*this)
.beginChild()
.setWidth(width)
.SET_INFO("Class editor")
.beginContainer()
.setInfo("Search of class editor")
.text("Search")
.separator()
.beginContainer()
.addItem(m_searchInput = new Elements::Input::Text)
.end()
.newLine()
.end()
.text("You may use filters")
.addItem(getFilterManager())
.newLine()
.separator()
.addItem(new ClassFilterCreator(this))
.beginContainer()
.SET_INFO("Left panel of class editor")
.newLine()
.separator()
.beginContainer()
.addItem(m_cb_isFilterEnabled = new Elements::Generic::Checkbox("Use filters and search", true, m_eventUpdateCB))
.addItem(m_cb_isHexDisplayEnabled = new Elements::Generic::Checkbox("Hex display", true, m_eventUpdateCB))
.addItem(m_cb_isEmptyFieldsEnabled = new Elements::Generic::Checkbox("Empty fields", true, m_eventUpdateCB))
.beginIf(_condition( m_cb_isEmptyFieldsEnabled->isSelected() ))
.addItem(m_cb_isEmptyFields_GroupingEnabled = new Elements::Generic::Checkbox("Group by 8 bytes", true, m_eventUpdateCB))
.end()
.addItem(m_cb_isAlwaysOpen = new Elements::Generic::Checkbox("Open all", false, m_eventUpdateCB))
.end()
.newLine()
.separator()
.text("Base address")
.addItem(m_classHierarchyAddressInput = new AddressInput)
.newLine()
.addItem(m_classEditorContainer = new ColContainer("Class editor panel"))
.addItem(m_classFieldContainer = new ColContainer("Class field panel"))
.end()
.end()
.sameLine()
.beginChild()
.SET_INFO("Tab body of class editor: here themselves classes shown")
.addItem(m_classesTabBar = new TabBar)
.end();
m_classEditorContainer->setDisplay(false);
m_classFieldContainer->setDisplay(false);
m_searchInput->getSpecialEvent() += m_eventUpdateCB;
m_classHierarchyAddressInput->getAddressValidEnteredEvent() += [&](Events::ISender* sender) {
if (m_classHierarchySelected != nullptr) {
if (m_classHierarchySelected->getBaseAddress() != m_classHierarchyAddressInput->getLastValidAddress()) {
m_classHierarchySelected->setBaseAddress(m_classHierarchyAddressInput->getLastValidAddress());
updateCurrentClassHierarchy();
}
}
};
}
~ClassEditor() {
delete m_eventUpdateCB;
}
class ClassTabItem : public TabItem
{
public:
ClassTabItem(ClassHierarchy* classHierarchy)
: m_classHierarchy(classHierarchy), TabItem(classHierarchy->m_targetClass->getClass()->getName())
{
addItem(classHierarchy);
}
ClassHierarchy* m_classHierarchy;
};
std::list<ClassHierarchy*> m_classHierarchies;
void addClassHierarchy(ClassHierarchy* classHierarchy) {
ClassTabItem* tabItem;
m_classesTabBar->addItem(tabItem = new ClassTabItem(classHierarchy));
tabItem->getCloseEvent() += [&](Events::ISender* sender_) {
auto sender = static_cast<ClassTabItem*>(sender_);
removeClassHierarchy(sender->m_classHierarchy);
};
m_classHierarchies.push_back(classHierarchy);
if (m_classHierarchySelected == nullptr) {
selectClassHierarchy(classHierarchy);
update();
}
}
void removeClassHierarchy(ClassHierarchy* classHierarchy) {
m_classHierarchies.remove(classHierarchy);
if (m_classHierarchySelected == classHierarchy) {
if (!m_classHierarchies.empty()) {
selectClassHierarchy(*m_classHierarchies.begin());
}
else {
m_classHierarchySelected = nullptr;
}
}
}
void addClass(API::Type::Class* targetClass, void* baseAddr = nullptr) {
ClassHierarchy* classHierarchy = new ClassHierarchy(this, targetClass, baseAddr);
addClassHierarchy(classHierarchy);
}
class ClassEditorPanel : public Container
{
public:
ClassEditorPanel(ClassEditor* classEditor, API::Type::Class* Class)
: m_classEditor(classEditor), m_class(Class)
{
(*this)
.text("Name: ").sameLine().addItem(m_nameInput = new Elements::Input::Text)
.text("Size: ").sameLine().addItem(m_relSizeInput = new Elements::Input::Int)
.newLine()
.addItem(
new Elements::Button::ButtonStd("Change", Events::Listener(
std::function([&](Events::ISender* sender) {
change();
update();
})
))
);
m_nameInput->setInputValue(getClass()->getName());
m_relSizeInput->setInputValue(getClass()->getRelSize());
}
void change() {
if (m_nameInput->getInputValue().empty()) {
throw Exception(m_nameInput, "Type a correct class name");
}
if (m_relSizeInput->getInputValue() <= 0) {
throw Exception(m_relSizeInput, "Type a correct relation size of the class");
}
if (m_relSizeInput->getInputValue() < getClass()->getSizeByLastField()) {
throw Exception(m_relSizeInput, "Some fields go out of the size. Remove/relocate them.");
}
getClass()->setName(m_nameInput->getInputValue());
getClass()->resize(m_relSizeInput->getInputValue());
}
void update() {
m_classEditor->updateCurrentClassContent();
}
DataType::Class* getClass() {
return m_class->getClass();
}
private:
API::Type::Class* m_class;
ClassEditor* m_classEditor;
Elements::Input::Text* m_nameInput;
Elements::Input::Int* m_relSizeInput;
};
class ClassFieldPanel : public Container
{
public:
ClassFieldPanel(ClassEditor* classEditor, API::Type::Class* Class, int relOffset)
: m_classEditor(classEditor), m_class(Class), m_relOffset(relOffset)
{
m_field = getClass()->getField(m_relOffset).second;
m_typeInput = m_field->getType();
(*this)
.text("Name: ").sameLine().addItem(m_nameInput = new Elements::Input::Text)
.text("Type: " + m_field->getType()->getDisplayName())
.text("Relative offset: 0x" + Generic::String::NumberToHex(relOffset));
m_nameInput->setInputValue(m_field->getName());
(*this)
.newLine()
.addItem(
new Elements::Button::ButtonStd("Change data type", Events::Listener(
std::function([&](Events::ISender* sender) {
if (m_dataTypeSelector == nullptr) {
getWindow()->addWindow(
m_dataTypeSelector = new Window::DataTypeSelector(m_class->getTypeManager())
);
m_dataTypeSelector->setType(m_typeInput);
m_dataTypeSelector->getCloseEvent() +=
[&](Events::ISender* sender) {
if(m_dataTypeSelector->getType() != nullptr) {
m_typeInput = m_dataTypeSelector->getType();
m_typeInput->addOwner();
}
m_dataTypeSelector = nullptr;
};
}
})
)));
(*this)
.newLine()
.newLine()
.addItem(
new Elements::Button::ButtonStd(isEmptyField() ? "Add" : "Change", Events::Listener(
std::function([&](Events::ISender* sender) {
change();
update();
})
))
);
if (!isEmptyField())
{
(*this)
.sameLine()
.addItem(
new Elements::Button::ButtonStd("Remove", Events::Listener(
std::function([&](Events::ISender* sender) {
remove();
update();
})
))
)
.sameLine()
.addItem(
new Elements::Button::ButtonArrow(ImGuiDir_Down, Events::Listener(
std::function([&](Events::ISender* sender) {
if(move(1))
update();
})
))
)
.sameLine()
.addItem(
new Elements::Button::ButtonArrow(ImGuiDir_Up, Events::Listener(
std::function([&](Events::ISender* sender) {
if (move(-1))
update();
})
))
)
.sameLine()
.addItem(m_cb_isMoveFieldOnlyEnabled = new Elements::Generic::Checkbox("Move field only", true));
m_cb_isMoveFieldOnlyEnabled->setToolTip(true);
}
}
void change() {
if (m_nameInput->getInputValue().empty()) {
throw Exception(m_nameInput, "Type a correct field name");
}
if (isEmptyField())
{
if (!getClass()->areEmptyFields(m_relOffset, m_typeInput->getSize())) {
throw Exception("Cannot insert the selected type to the class");
}
getClass()->addField(m_relOffset, m_nameInput->getInputValue(), m_typeInput);
}
else
{
remove();
change();
}
}
void remove() {
getClass()->removeField(m_relOffset);
m_field = getClass()->getDefaultField();
}
bool move(int direction) {
auto bytesCount = m_typeInput->getSize() * direction;
bool result;
if (m_cb_isMoveFieldOnlyEnabled->isSelected()) {
result = getClass()->moveField(m_relOffset, bytesCount);
}
else {
result = getClass()->moveFields(m_relOffset, bytesCount);
}
if(result)
m_relOffset += bytesCount;
return result;
}
void update() {
m_classEditor->updateCurrentClassContent();
auto fieldLocation = m_classEditor->m_classHierarchySelected->getFieldLocationBy(getClass(), m_relOffset);
if (fieldLocation != nullptr) {
m_classEditor->selectClassFields(fieldLocation);
}
}
bool isEmptyField() {
return getClass()->isDefaultField(m_field);
}
DataType::Class* getClass() {
return m_class->getClass();
}
private:
API::Type::Class* m_class;
int m_relOffset;
ClassEditor* m_classEditor;
DataType::Class::Field* m_field;
Elements::Input::Text* m_nameInput;
Elements::Generic::Checkbox* m_cb_isMoveFieldOnlyEnabled = nullptr;
DataType::Type* m_typeInput;
Window::DataTypeSelector* m_dataTypeSelector = nullptr;
};
class ClassFieldsPanel : public Container
{
public:
ClassFieldsPanel(ClassEditor* classEditor, std::list<std::pair<API::Type::Class*, int>> fields)
: m_classEditor(classEditor), m_fields(fields)
{
(*this)
.text("Selected "+ std::to_string(m_fields.size()) +" fields.")
.newLine()
.addItem(
new Elements::Button::ButtonStd("Clear",
Events::Listener(
std::function([&](Events::ISender* sender) {
clearFields();
})
)
)
);
}
void clearFields() {
for (auto it : m_fields) {
auto Class = it.first->getClass();
auto field = Class->getField(it.second);
if (!Class->isDefaultField(field.second)) {
Class->removeField(field.first);
}
}
update();
}
void update() {
m_classEditor->updateCurrentClassContent();
}
private:
ClassEditor* m_classEditor;
std::list<std::pair<API::Type::Class*, int>> m_fields;
};
ClassHierarchy* m_classHierarchySelected = nullptr;
void selectClassHierarchy(ClassHierarchy* classHierarchy) {
m_classHierarchyAddressInput->setAddress(classHierarchy->getBaseAddress());
m_classHierarchySelected = classHierarchy;
}
ClassHierarchy::ClassContent* m_classContentSelected = nullptr;
void selectClassContent(ClassHierarchy::ClassContent* classContent) {
if (m_classHierarchySelected != classContent->m_classHierarchy) {
selectClassHierarchy(classContent->m_classHierarchy);
}
if (m_classContentSelected == classContent)
return;
m_classEditorContainer->setDisplay(true);
m_classEditorContainer->setOpen(true);
m_classEditorContainer->clear();
m_classEditorContainer->addItem(new ClassEditorPanel(this, classContent->m_class));
classContent->addFlags(ImGuiTreeNodeFlags_Selected, true);
m_classContentSelected = classContent;
}
void unselectClassContent() {
if (m_classContentSelected != nullptr) {
m_classEditorContainer->setDisplay(false);
m_classContentSelected->addFlags(ImGuiTreeNodeFlags_Selected, false);
m_classContentSelected = nullptr;
}
}
ClassHierarchy::ClassContent::EmptyField* m_classFieldSelected = nullptr;
std::set<ClassHierarchy::ClassContent::EmptyField*> m_classFieldsSelected;
void selectClassFields(ClassHierarchy::ClassContent::EmptyField* classField, bool shiftPressed = false, bool ctrlPressed = false) {
if (m_classFieldSelected == nullptr || (!shiftPressed && !ctrlPressed)) {
unselectClassFields();
selectClassField(classField);
if (m_classContentSelected != classField->m_classContent) {
unselectClassContent();
selectClassContent(classField->m_classContent);
}
m_classFieldContainer->setDisplay(true);
m_classFieldContainer->setOpen(true);
m_classFieldContainer->clear();
m_classFieldContainer->addItem(new ClassFieldPanel(this, classField->m_classContent->m_class, classField->m_relOffset));
}
else {
if (shiftPressed) {
auto classContent = classField->m_classContent;
if (m_classFieldSelected->m_classContent == classField->m_classContent)
{
auto firstField = m_classFieldSelected;
auto lastField = classField;
if (classField->m_relOffset < m_classFieldSelected->m_relOffset)
std::swap(firstField, lastField);
bool select = false;
for (auto it = classContent->m_fields.begin(); it != classContent->m_fields.end(); it ++) {
if (*it == firstField)
select = true;
if (select) {
if (isClassFieldSelected(*it) && *it != firstField && *it != lastField)
unselectClassField(*it);
else selectClassField(*it);
}
if (*it == lastField)
select = false;
}
}
}
else if (ctrlPressed) {
if (isClassFieldSelected(classField))
unselectClassField(classField);
else selectClassField(classField);
}
if (m_classFieldsSelected.size() == 1) {
selectClassFields(*m_classFieldsSelected.begin(), false, false);
return;
}
m_classFieldContainer->clear();
std::list<std::pair<API::Type::Class*, int>> fields;
for (auto it : m_classFieldsSelected) {
fields.push_back(std::make_pair(it->m_classContent->m_class, it->m_relOffset));
}
m_classFieldContainer->addItem(new ClassFieldsPanel(this, fields));
}
m_classFieldSelected = classField;
}
bool isClassFieldSelected(ClassHierarchy::ClassContent::EmptyField* classField) {
return m_classFieldsSelected.find(classField) != m_classFieldsSelected.end();
}
void selectClassField(ClassHierarchy::ClassContent::EmptyField* classField) {
m_classFieldsSelected.insert(classField);
classField->addFlags(ImGuiTreeNodeFlags_Selected, true);
}
void unselectClassField(ClassHierarchy::ClassContent::EmptyField* classField) {
m_classFieldsSelected.erase(classField);
classField->addFlags(ImGuiTreeNodeFlags_Selected, false);
if (m_classFieldsSelected.size() == 0) {
unselectClassFields();
}
}
void unselectClassFields() {
m_classFieldContainer->setDisplay(false);
for (auto field : m_classFieldsSelected) {
field->addFlags(ImGuiTreeNodeFlags_Selected, false);
}
m_classFieldsSelected.clear();
m_classFieldSelected = nullptr;
}
void update() {
for (auto it : m_classHierarchies) {
it->onSearch(getSearchInput());
}
}
void updateCurrentClassHierarchy() {
m_classHierarchySelected->onSearch(getSearchInput());
}
void updateCurrentClassContent() {
m_classContentSelected->onSearch(getSearchInput());
}
bool isFilterEnabled() {
return m_cb_isFilterEnabled->isSelected();
}
bool isEmptyFieldsEnabled() {
return m_cb_isEmptyFieldsEnabled->isSelected();
}
bool isEmptyFields_GroupingEnabled() {
return m_cb_isEmptyFields_GroupingEnabled->isSelected();
}
bool isAlwaysOpen() {
return m_cb_isAlwaysOpen->isSelected();
}
bool isHexDisplayEnabled() {
return m_cb_isHexDisplayEnabled->isSelected();
}
bool checkOnInputValue(DataType::Class::Field& field, const std::string& value) {
return Generic::String::ToLower(field.getName())
.find(Generic::String::ToLower(value)) != std::string::npos;
}
bool checkOnInputValue(API::Function::Function* function, const std::string& value) {
return Generic::String::ToLower(function->getMethod()->getName())
.find(Generic::String::ToLower(value)) != std::string::npos;
}
std::string getSearchInput() {
return m_searchInput->getInputValue();
}
/*bool checkAllFilters(Type::Class::Field& field) {
return getFilterManager()->check([&field](FilterManager::Filter* filter) {
return static_cast<ClassFilter*>(filter)->checkFilter(function);
});
}*/
Template::FilterManager* getFilterManager() {
return &m_filterManager;
}
private:
Elements::Generic::Checkbox* m_cb_isFilterEnabled = nullptr;
Elements::Generic::Checkbox* m_cb_isEmptyFieldsEnabled = nullptr;
Elements::Generic::Checkbox* m_cb_isEmptyFields_GroupingEnabled = nullptr;
Elements::Generic::Checkbox* m_cb_isAlwaysOpen = nullptr;
Elements::Generic::Checkbox* m_cb_isHexDisplayEnabled = nullptr;
Events::SpecialEventType::EventHandlerType* m_eventUpdateCB = nullptr;
Template::FilterManager m_filterManager;
};
};
namespace GUI::Window
{
class ClassEditor : public IWindow
{
public:
ClassEditor(Widget::ClassEditor* classEditor, const std::string& name = "Class editor")
: IWindow(name)
{
setWidth(700);
setHeight(700);
setMainContainer(classEditor);
}
~ClassEditor() {
}
};
}; |
6a91ecd03b97a256c1d6073a5fc4d05cb9977f3f | 8bf5d7ed1c70ae4dd0fc4920f8944e489e4ca258 | /pong/pong/Score.cpp | fb1196566e40f64607437040bd3edb16c7d4349e | [] | no_license | dogick/Ping-pong | 33e541f8602afb8ba42aec365d078e0a99424551 | aff25f42cebe85f941ecf043f9598ab00f94d66d | refs/heads/master | 2020-02-26T17:13:54.787160 | 2016-10-23T19:09:06 | 2016-10-23T19:09:06 | 71,715,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | Score.cpp | #include "stdafx.h"
#include "Score.h"
Score::Score()
{
if (!font.loadFromFile("resources/font/Rotonda.ttf"))
{
exit(EXIT_FAILURE);
}
for (auto & scoreText : text)
{
scoreText.setFont(font);
scoreText.setCharacterSize(35);
scoreText.setString(std::to_string(0));
}
text[0].setPosition(450, 8);
text[1].setPosition(530, 8);
scorePlayer = 0;
scoreEnemy = 0;
} |
faa8bc26cedc786751465e6acde150a6d9bdb173 | c082db10d6ca0d961dfecfd9df137e5c4247f85f | /Dog.cpp | 9847408d492086b81a1ce7b593f4cae8d62756e2 | [] | no_license | Dachief332/Inheritance-Example | bbcb12fecbc4b9eaf2adf1310475293e7e353dcc | 9d3dc2a2011570dd86e23a6ad19de9c954824da4 | refs/heads/master | 2022-04-25T16:42:44.327067 | 2020-04-29T03:09:43 | 2020-04-29T03:09:43 | 259,808,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | Dog.cpp | #include "Dog.h"
string Dog::getAnimalType()
{
return "Dog";
};
void Dog::makeNoise()
{
cout << "Woof! Woof! Squirrel!" << endl;
};
void Dog::doDoggyThings()
{
cout << "I'm digging a hole and burying my bone so the squirrels can't get it!" << endl;
}; |
6ab19234736aa4caa0413cb733161defe2ed250e | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/tests/functional/shared_test_classes/include/shared_test_classes/single_layer/is_inf.hpp | 96971c3705c8becbc85b9d04b185900d6604e151 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 1,173 | hpp | is_inf.hpp | // Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <string>
#include <tuple>
#include "shared_test_classes/base/ov_subgraph.hpp"
namespace ov {
namespace test {
namespace subgraph {
using IsInfParams = std::tuple<
std::vector<InputShape>, // Data shape
bool, // Detect negative
bool, // Detect positive
ElementType, // Data precision
std::string, // Device name
std::map<std::string, std::string> // Additional config
>;
class IsInfLayerTest : public testing::WithParamInterface<IsInfParams>,
virtual public SubgraphBaseTest {
public:
static std::string getTestCaseName(const testing::TestParamInfo<IsInfParams>& obj);
protected:
void SetUp() override;
void generate_inputs(const std::vector<ov::Shape>& targetInputStaticShapes) override;
};
} // namespace subgraph
} // namespace test
} // namespace ov
|
f0d471227c36da0ca6264c9cddf34b501a2a56a9 | 18aa7d19f819e81f62cd4628bbc873faa366efd9 | /include/gpmg/allocators/region-allocator.hpp | a7cf4090ac34300ffc264ac7bf405158aac2ce85 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hstalker/gpmg | 641f395363a9f588811a4c9ad3d0164da3869211 | 0ec5ea9a99b835cca442a87f11a957525002ac35 | refs/heads/master | 2020-06-04T01:59:57.610039 | 2015-09-14T15:15:24 | 2015-09-14T15:15:24 | 42,355,280 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,457 | hpp | region-allocator.hpp | /// \file region-allocator.hpp
/// \author Hector Stalker
/// \copyright Copyright 2015 Hector Stalker. All rights reserved.
/// This project is released under the MIT License.
/// \brief Defines a contiguous region allocator that takes a reserved
/// memory block.
#ifndef GPMG_ALLOCATORS_REGION_ALLOCATOR_HPP
#define GPMG_ALLOCATORS_REGION_ALLOCATOR_HPP
#include <type_traits>
#include "tools.hpp"
#include "../misc/types.hpp"
#include "../misc/platform.hpp"
#include "../misc/assert.hpp"
namespace gpmg {
/// An allocator that takes a fixed size buffer and allocates linearly into
/// that.
/// Allocation is merely a pointer addition. Can not deallocate piecewise.
class RegionAllocator {
public:
RegionAllocator(void* b, unsigned int size)
: beg_(static_cast<u8*>(b)), end_(beg_ + size), p_(beg_) {}
~RegionAllocator() = default;
RegionAllocator(const RegionAllocator&) = default;
RegionAllocator(RegionAllocator&&) = default;
RegionAllocator& operator=(const RegionAllocator&) = default;
RegionAllocator& operator=(RegionAllocator&&) = default;
/// Allocates a block of memory of a given size
/// \param n The size of memory to try to allocate
/// \return A pointer to the newly allocated block if successful,
/// a nullptr if unsuccessful.
void* allocate(std::size_t n) {
// If there isn't enough room for the allocation just return a nullptr
if (static_cast<std::size_t>(end_ - p_) < n) {
return nullptr;
}
// Store the current position and bump the pointer
auto result = p_;
p_ += n;
// Return the old pointer position
return result;
}
/// Tests whether this allocator instance owns the memory given
/// \param b Pointer to the block of memory which is being checked for
/// ownership
/// \return Whether the memory is owned by this allocator or not
bool owns(void* b) {
// Check if the pointer address lies within the range between the
// beginning and end of the region
return beg_ <= static_cast<u8*>(b) && end_ >= static_cast<u8*>(b);
}
unsigned int alignment =
1; /// The memory alignment the allocator should use
private:
u8* beg_; /// Pointer to the beginning of the region
u8* end_; /// Pointer to the end of the region
u8* p_; /// Pointer to the current position in the region
};
}
#endif
|
0e632b0b6356a29f63343e3dc80731ef3dcce047 | cdae6aeb424b8caf82ee43d59d18b4e2ed11bc6b | /Codeforces/69A - Young Physicist.cpp | b8561042b9381f705aa7fb0dea6af8473421809d | [] | no_license | mazenmayman/ACM | c0d9039a95d00fe2d4c7c9e013ec8ae8dd07e593 | 558ed6ea0cbf2640a809a823f96c51c30f8bc080 | refs/heads/master | 2021-01-01T03:59:59.204431 | 2016-04-24T12:25:48 | 2016-04-24T12:25:48 | 56,374,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 468 | cpp | 69A - Young Physicist.cpp | #include <iostream>
using namespace std;
int sum[3] = {0, 0, 0};
int main(){
int n, x;
cin >> n;
for(int i = 0; i < n; i++){
for (int j = 0; j < 3; j++){
cin >> x;
sum[j] += x;
}
}
bool flag = true;
for(int i = 0; i < 3; i++){
if(sum[i] != 0)
flag = false;
}
if(flag)
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} |
5718e8221cd2332d4d43dda22a9a13319f8be912 | b78c1a08758922f81f69b533f8f4a955843adfc4 | /GI_project/GI_project/headers/triangle.h | 36427a19e79885b10ea23ecaebaed335886be4fa | [] | no_license | J-Bedhammar/GI | 76a35156b792de83e7aa78ac19cf4571604da437 | 71d1547539c747c46752f100df6fc4717f493640 | refs/heads/master | 2022-03-26T10:39:33.537566 | 2020-01-11T12:12:52 | 2020-01-11T12:12:52 | 149,772,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 481 | h | triangle.h | #ifndef TRIANGLE_H
#define TRIANGLE_H
#include "definitions.h"
#include "surface.h"
#include "ray.h"
class Triangle {
private:
Vertex v0, v1, v2;
Direction triangleNormal;
Surface triangleSurface;
public:
Triangle();
~Triangle() = default;
Triangle(Vertex &a, Vertex &b, Vertex &c, Surface s);
Direction getNormal() { return triangleNormal; }
Surface getSurface() { return triangleSurface; }
bool rayTriangleIntersection(Ray &r);
Vertex getRandPoint();
};
#endif
|
3867066dbb3cfec14e854a508927eef1a012ab43 | ce7cd2b2f9709dbadf613583d9816c862003b38b | /SRC/common/cmicrostructure.h | 6c9ae9b75de909df5f676220214aec5bb4af46fe | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | usnistgov/OOF3D | 32b01a25154443d29d0c44d5892387e8ef6146fa | 7614f8ea98a095e78c62c59e8952c0eb494aacfc | refs/heads/master | 2023-05-25T13:01:20.604025 | 2022-02-18T20:24:54 | 2022-02-18T20:24:54 | 29,606,158 | 34 | 7 | null | 2015-02-06T19:56:26 | 2015-01-21T19:04:14 | Python | UTF-8 | C++ | false | false | 10,952 | h | cmicrostructure.h | // -*- C++ -*-
/* This software was produced by NIST, an agency of the U.S. government,
* and by statute is not subject to copyright in the United States.
* Recipients of this software assume all responsibilities associated
* with its operation, modification and maintenance. However, to
* facilitate maintenance we ask that before distributing modified
* versions of this software, you first contact the authors at
* oof_manager@nist.gov.
*/
#include <oofconfig.h>
#ifndef CMICROSTRUCTURE_H
#define CMICROSTRUCTURE_H
class CMicrostructure;
#include "common/array.h"
#include "common/boolarray.h"
#include "common/coord.h"
#include "common/lock.h"
#include "common/pixelattribute_i.h"
#include "common/timestamp.h"
#include <list>
#include <map>
#include <vector>
class ActiveArea;
class CPixelSelection;
class CRectangle;
class PixelGroup;
// TODO: Use unsigned ints for voxel categories. It's inconsistent
// now. MicrostructureAttributes::getCategory returns an unsigned
// int, but everything else seems to use int. That's because
// UNKNOWN_CAT is defined as -1.
#define UNKNOWN_CATEGORY -1
// Some operations, such as finding the pixels under an element,
// require marking pixels in the microstructure. Neither the
// microstructure nor the pixels can keep track of which pixels are
// marked, because there might be concurrent marking threads. So the
// mark information is kept in a separate MarkInfo object.
class MarkInfo {
private:
friend class CMicrostructure;
MarkInfo(const ICoord &size);
BoolArray markedpixels;
BoolArray markedregion; // active subarray of markedpixels
void mark_site(std::vector<ICoord>&, const ICoord&);
friend std::ostream &operator<<(std::ostream &os, const MarkInfo &mi) {
os << mi.markedregion;
return os;
}
};
class TransitionPointIterator {
private:
const CMicrostructure *MS;
const std::vector<ICoord> *pixels;
std::vector<ICoord>::const_iterator pixel;
Coord p0, p1, delta, currentTransPoint;
ICoord diff, prevpixel;
int cat, prevcat;
double slope, invslope, x0, y0, x, y;
#if DIM==3
double slopez, invslopez, z0, z;
#endif
bool found, localfound;
public:
TransitionPointIterator(const CMicrostructure*, const Coord&, const Coord&,
bool verbose);
// TransitionPointIterator(const CMicrostructure*, const Coord&, const Coord&,
// const std::vector<ICoord> *);
~TransitionPointIterator() { delete pixels; }
void begin();
bool infiniteSlope() { return (delta[0]==0); }
void operator++();
Coord current() { return currentTransPoint; }
bool end() { return (pixel>=pixels->end() && localfound==false); }
bool isfound() { return found; }
int numPixels() { return pixels->size(); }
int getPrevcat() { return prevcat; }
// The first and last points of the segment.
Coord first();
Coord last();
double getNormDelta() { return sqrt(norm2(delta)); }
};
// This class holds containers for the set of PixelAttributeVectors
// found in its microstructure and manages mapping those attribute
// vectors to categories as well as managing the pixel groups. Each
// CMicrostructure contains a MicrostructureAttributes object.
class MicrostructureAttributes {
private:
const CMicrostructure *MS;
std::vector<PixelAttributeGlobalData*> attributeGlobalData;
mutable AttributeVectorSet attributeVectorSet;
mutable AttributeVectorCategoryMap attrVecToCategoryMap;
mutable AttributeVectorVec attrVecVec;
int pixelgroup_index;
int ncategories_;
public:
MicrostructureAttributes(const CMicrostructure *ms);
~MicrostructureAttributes();
PixelAttributeGlobalData *getAttributeGlobalData(int attributeID) const;
PixelAttribute* getAttributeFromCategory(unsigned int cat, int index) const;
AttributeVectorSet::iterator begin() { return attributeVectorSet.begin(); }
AttributeVectorSet::iterator end() { return attributeVectorSet.end(); }
AttributeVectorSet::const_iterator begin() const {
return attributeVectorSet.begin();
}
AttributeVectorSet::const_iterator end() const {
return attributeVectorSet.end();
}
void addAttributes(AttributeVectorSet &new_avs) {
attributeVectorSet.insert(new_avs.begin(), new_avs.end());
}
void attributeChangeMapEntry(PixelAttributeVector*, PixelAttributeVector*,
AttributeVectorMap&, AttributeVectorSet&);
void buildAttributeChangeMap(PixelAttribute *pa, int index,
AttributeVectorMap &avm);
void prune() const;
void categorize();
void categorizeRO(AttributeVectorCategoryMap &avcm);
int ncategories() { return ncategories_; }
unsigned int getCategory(PixelAttributeVector *pav) {
return attrVecToCategoryMap[pav];
}
};
class CMicrostructure {
private:
ICoord pxlsize_; // size of microstructure in pixels
Coord size_; // physical size of whole microstructure
Coord delta_; // physical size of a pixel
TimeStamp timestamp;
static long globalMicrostructureCount; // for testing
// List of pixel groups defined on this microstructure.
std::list<PixelGroup*> pixelgroups;
CPixelSelection *pixelSelection;
// The array of pointers to pixel attribute vectors, assoicated with
// each pixel.
mutable Array<PixelAttributeVector*> attributeVectors;
mutable MicrostructureAttributes attributes;
mutable std::vector<int> categoryCounts; // no. of voxels in each category.
// categorymap caches the pixel categories assigned by categorize().
// It's mutable because CMicrostructure::category() is
// logically const, but it caches the categories in the categorymap.
mutable Array<int> categorymap;
mutable bool categorized;
mutable int ncategories;
void categorize() const;
// Lock to protect the sometimes-lengthy categorization process, and
// functions which query the data it produces. This lock protects
// the categoryBdys, categorized, ncategories, categorymap, and
// defunctgroups members, and should be invoked by any
// CMicrostructure function that modifies them, including those that
// might do so indirectly by potentially calling categorize().
// Categorize itself does not acquire this lock, but all of its
// callers must.
mutable SLock category_lock;
// // Second lock, to protect data shared between the categorize()
// // function and other group and attribute modifying functions --
// // categorize reads these data, but others can write them.
// // Specifically, this protects the attributeMap and pixelgroups
// // data members.
// mutable SRWLock groups_attributes_lock;
ActiveArea *activearea;
std::string name_;
public:
CMicrostructure(const std::string &name,
const ICoord *pxlsize, const Coord *size);
~CMicrostructure();
const std::string &name() const { return name_; }
void rename(const std::string &name) { name_ = name; }
void destroy();
const Coord &size() const { return size_; }
const ICoord &sizeInPixels() const { return pxlsize_; }
const Coord &sizeOfPixels() const { return delta_; }
#if DIM==2
double areaOfPixels() const { return delta_[0]*delta_[1]; }
#elif DIM==3
double volumeOfVoxels() const { return delta_[0]*delta_[1]*delta_[2]; }
double volume() const { return size_.x[0]*size_.x[1]*size_.x[2]; }
#endif
Coord physical2Pixel(const Coord&) const; // real space to pixel coords
Coord pixel2Physical(const ICoord&) const;
Coord pixel2Physical(const Coord&) const;
ICoord pixelFromPoint(const Coord&) const; // pixel containing the given point
bool contains(const ICoord&) const;
bool containsPixelCoord(const Coord&) const;
TimeStamp &getTimeStamp();
const TimeStamp &getTimeStamp() const;
void setCurrentActiveArea(ActiveArea *aa) { activearea = aa; }
const ActiveArea *getActiveArea() const { return activearea; }
bool isActive(const Coord& point) const;
bool isActive(const ICoord &pxl) const;
void setPixelSelection(CPixelSelection *pxlsl) { pixelSelection = pxlsl; }
bool isSelected(const ICoord*) const;
int nGroups() const;
PixelGroup *getGroup(const std::string &name, bool *newness);
PixelGroup *findGroup(const std::string &name) const;
void removeGroup(const std::string &name);
std::vector<std::string> *groupNames() const;
Array<PixelAttributeVector*>& getAttributeVectors() {
return attributeVectors;
}
const Array<PixelAttributeVector*>& getConstAttributeVectors() const {
return attributeVectors;
}
MicrostructureAttributes &getMSAttributes() { return attributes; }
const MicrostructureAttributes &getMSAttributes() const {return attributes; }
PixelAttribute* getAttribute(const ICoord &where, int index) const;
PixelAttribute* getAttributeFromCategory(int cat, int index) const {
return attributes.getAttributeFromCategory(cat,index);
}
PixelAttributeVector *getAttributeVector(const ICoord &where) const {
return attributeVectors[where];
}
PixelAttributeGlobalData *getAttributeGlobalData(int attributeID) const;
void buildAttributeChangeMap(PixelAttribute *pa, int index,
AttributeVectorMap &avm)
{
attributes.buildAttributeChangeMap(pa, index, avm);
}
void updateAttributeVector(const ICoord &where, AttributeVectorMap &avm)
const;
const Array<int> *getCategoryMap() const; // changes mutable private data
const Array<int> *getCategoryMapRO() const; // changes no data
int nCategories() const;
// Three different versions of this for convenience in calling it...
// TODO: Are categories signed or unsigned? We aren't consistent.
int category(const ICoord *where) const;
int category(const ICoord &where) const;
int category(const Coord *where) const; // Arbitrary physical-coord point.
int category(const Coord &where) const; // Arbitrary physical-coord point.
void recategorize();
bool is_categorized() const { return categorized; }
void categorizeIfNecessary() const;
double volumeOfCategory(unsigned int) const;
// unsigned char voxelSignature(const ICoord&, unsigned int,
// const ICRectangularPrism&) const;
std::vector<ICoord> *segmentPixels(const Coord&, const Coord&, bool&, bool&,
bool verbose)
const;
#if DIM==2
MarkInfo *beginMarking(const CRectangle&) const; // sets active subarray of markedpixels
void markSegment(MarkInfo*, const Coord&, const Coord&) const;
void markTriangle(MarkInfo*, const Coord&, const Coord&, const Coord&) const;
ICoordVector *markedPixels(MarkInfo*) const;
void endMarking(MarkInfo*) const;
#endif // DIM==2
// bool transitionPointClosest(const Coord&, const Coord&,
// TransitionPointIterator&, Coord *result) const;
bool transitionPoint(const Coord&, const Coord&, Coord *result, bool) const;
double edgeHomogeneity(const Coord&, const Coord&) const;
double edgeHomogeneityCat(const Coord&, const Coord&, int* cat) const;
friend long get_globalMicrostructureCount();
}; // end class CMicrostructure
long get_globalMicrostructureCount();
#endif // CMICROSTRUCTURE_H
|
341ca88d73d20936e0ce547ecf91207e5fa7b9bd | c475cd8531a94ffae69cc92371d41531dbbddb6c | /Libraries/qhull_git_22feb2012/src/libqhullcpp/PointCoordinates.h | 316d1227980c2014270446e29543a896611b004e | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | WolfireGames/overgrowth | 72d3dd29cbd7254337265c29f8de3e5c32400114 | 594a2a4f9da0855304ee8cd5335d042f8e954ce1 | refs/heads/main | 2023-08-15T19:36:56.156578 | 2023-05-17T08:17:53 | 2023-05-17T08:20:36 | 467,448,492 | 2,264 | 245 | Apache-2.0 | 2023-05-09T07:29:58 | 2022-03-08T09:38:54 | C++ | UTF-8 | C++ | false | false | 6,806 | h | PointCoordinates.h | /****************************************************************************
**
** Copyright (c) 2009-2012 C.B. Barber. All rights reserved.
** $Id: //main/2011/qhull/src/libqhullcpp/PointCoordinates.h#5 $$Change: 1464 $
** $DateTime: 2012/01/25 22:58:41 $$Author: bbarber $
**
****************************************************************************/
#ifndef QHPOINTCOORDINATES_H
#define QHPOINTCOORDINATES_H
#include "QhullPoints.h"
#include "Coordinates.h"
extern "C" {
#include "libqhull/qhull_a.h"
}
#include <ostream>
#include <vector>
namespace orgQhull {
#//Types
//! Zero or more points with Coordinates, count, and dimension
class PointCoordinates;
class PointCoordinates : public QhullPoints {
private:
#//Field
Coordinates point_coordinates; //! array of point coordinates
//! may have extraCoordinates()
std::string point_comment; //! Comment describing PointCoordinates
public:
#//Construct
PointCoordinates();
explicit PointCoordinates(int pointDimension);
explicit PointCoordinates(const std::string &aComment);
PointCoordinates(int pointDimension, const std::string &aComment);
PointCoordinates(int pointDimension, const std::string &aComment, int coordinatesCount, const coordT *c); // may be invalid
//! Use append() and appendPoints() for Coordinates and vector<coordT>
PointCoordinates(const PointCoordinates &other);
PointCoordinates &operator=(const PointCoordinates &other);
~PointCoordinates();
#//Convert
//! QhullPoints coordinates, constData, data, count, size
#ifndef QHULL_NO_STL
void append(const std::vector<coordT> &otherCoordinates) { if(!otherCoordinates.empty()){ append((int)otherCoordinates.size(), &otherCoordinates[0]); } }
std::vector<coordT> toStdVector() const { return point_coordinates.toStdVector(); }
#endif //QHULL_NO_STL
#ifdef QHULL_USES_QT
void append(const QList<coordT> &pointCoordinates) { if(!pointCoordinates.isEmpty()){ append(pointCoordinates.count(), &pointCoordinates[0]); } }
QList<coordT> toQList() const { return point_coordinates.toQList(); }
#endif //QHULL_USES_QT
#//GetSet
//! See QhullPoints for coordinates, coordinateCount, dimension, empty, isEmpty, ==, !=
void checkValid() const;
std::string comment() const { return point_comment; }
void makeValid() { defineAs(point_coordinates.count(), point_coordinates.data()); }
const Coordinates &getCoordinates() const { return point_coordinates; }
void setComment(const std::string &s) { point_comment= s; }
void setDimension(int i);
private:
void defineAs(int coordinatesCount, coordT *c) { QhullPoints::defineAs(coordinatesCount, c); }
//! defineAs() otherwise disabled
public:
#//ElementAccess
//! See QhullPoints for at, back, first, front, last, mid, [], value
#//Foreach
//! See QhullPoints for begin, constBegin, end
Coordinates::ConstIterator beginCoordinates() const { return point_coordinates.begin(); }
Coordinates::Iterator beginCoordinates() { return point_coordinates.begin(); }
Coordinates::ConstIterator beginCoordinates(int pointIndex) const;
Coordinates::Iterator beginCoordinates(int pointIndex);
Coordinates::ConstIterator endCoordinates() const { return point_coordinates.end(); }
Coordinates::Iterator endCoordinates() { return point_coordinates.end(); }
#//Search
//! See QhullPoints for contains, count, indexOf, lastIndexOf
#//Read-only
PointCoordinates operator+(const PointCoordinates &other) const;
#//Modify
//FIXUP QH11001: Add clear() and other modify operators from Coordinates.h. Include QhullPoint::operator=()
void append(int coordinatesCount, const coordT *c); //! Dimension previously defined
void append(const coordT &c) { append(1, &c); } //! Dimension previously defined
void append(const QhullPoint &p);
//! See convert for std::vector and QList
void append(const Coordinates &c) { append(c.count(), c.data()); }
void append(const PointCoordinates &other);
void appendComment(const std::string &s);
void appendPoints(std::istream &in);
PointCoordinates &operator+=(const PointCoordinates &other) { append(other); return *this; }
PointCoordinates &operator+=(const coordT &c) { append(c); return *this; }
PointCoordinates &operator+=(const QhullPoint &p) { append(p); return *this; }
PointCoordinates &operator<<(const PointCoordinates &other) { return *this += other; }
PointCoordinates &operator<<(const coordT &c) { return *this += c; }
PointCoordinates &operator<<(const QhullPoint &p) { return *this += p; }
// reserve() is non-const
void reserveCoordinates(int newCoordinates);
#//Helpers
private:
int indexOffset(int i) const;
};//PointCoordinates
// No references to QhullPoint. Prevents use of QHULL_DECLARE_SEQUENTIAL_ITERATOR(PointCoordinates, QhullPoint)
class PointCoordinatesIterator
{
typedef PointCoordinates::const_iterator const_iterator;
const PointCoordinates *c;
const_iterator i;
public:
inline PointCoordinatesIterator(const PointCoordinates &container)
: c(&container), i(c->constBegin()) {}
inline PointCoordinatesIterator &operator=(const PointCoordinates &container)
{ c = &container; i = c->constBegin(); return *this; }
inline void toFront() { i = c->constBegin(); }
inline void toBack() { i = c->constEnd(); }
inline bool hasNext() const { return i != c->constEnd(); }
inline const QhullPoint next() { return *i++; }
inline const QhullPoint peekNext() const { return *i; }
inline bool hasPrevious() const { return i != c->constBegin(); }
inline const QhullPoint previous() { return *--i; }
inline const QhullPoint peekPrevious() const { const_iterator p = i; return *--p; }
inline bool findNext(const QhullPoint &t)
{ while (i != c->constEnd()) if (*i++ == t) return true; return false; }
inline bool findPrevious(const QhullPoint &t)
{ while (i != c->constBegin()) if (*(--i) == t) return true;
return false; }
};//CoordinatesIterator
// FIXUP QH11002: Add MutablePointCoordinatesIterator after adding modify operators
\
}//namespace orgQhull
#//Global functions
std::ostream &operator<<(std::ostream &os, const orgQhull::PointCoordinates &p);
#endif // QHPOINTCOORDINATES_H
|
6e9cecd5f4ad4f4ef38f378b72103935b3ac2ed3 | 1302a788aa73d8da772c6431b083ddd76eef937f | /WORKING_DIRECTORY/system/connectivity/shill/icmp_session_unittest.cc | f5421aee955dcddf15eb5d6a9ce0b2279b8d0f40 | [
"Apache-2.0"
] | permissive | rockduan/androidN-android-7.1.1_r28 | b3c1bcb734225aa7813ab70639af60c06d658bf6 | 10bab435cd61ffa2e93a20c082624954c757999d | refs/heads/master | 2021-01-23T03:54:32.510867 | 2017-03-30T07:17:08 | 2017-03-30T07:17:08 | 86,135,431 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 20,240 | cc | icmp_session_unittest.cc | //
// Copyright (C) 2015 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#include "shill/icmp_session.h"
#include <base/test/simple_test_tick_clock.h>
#include <gtest/gtest.h>
#include "shill/mock_event_dispatcher.h"
#include "shill/mock_icmp.h"
#include "shill/net/ip_address.h"
using base::Bind;
using base::Unretained;
using testing::_;
using testing::NiceMock;
using testing::Return;
using testing::StrictMock;
using testing::Test;
namespace shill {
namespace {
// Note: this header is given in network byte order, since
// IcmpSession::OnEchoReplyReceived expects to receive a raw IP packet.
const uint8_t kIpHeader[] = {0x45, 0x80, 0x00, 0x1c, 0x63, 0xd3, 0x00,
0x00, 0x39, 0x01, 0xcc, 0x9f, 0x4a, 0x7d,
0xe0, 0x18, 0x64, 0x6e, 0xc1, 0xea};
// ICMP echo replies with 0 bytes of data and and echo ID 0. Sequence numbers
// are 0x8, 0x9, and 0xa respectively to simulate replies to a sequence of sent
// echo requests.
const uint8_t kIcmpEchoReply1[] = {0x00, 0x00, 0xf7, 0xff,
0x00, 0x00, 0x08, 0x00};
const uint16_t kIcmpEchoReply1_SeqNum = 0x08;
const uint8_t kIcmpEchoReply2[] = {0x00, 0x00, 0xf6, 0xff,
0x00, 0x00, 0x09, 0x00};
const uint16_t kIcmpEchoReply2_SeqNum = 0x09;
const uint8_t kIcmpEchoReply3[] = {0x00, 0x00, 0xf5, 0xff,
0x00, 0x00, 0x0a, 0x00};
const uint16_t kIcmpEchoReply3_SeqNum = 0x0a;
// This ICMP echo reply has an echo ID of 0xe, which is different from the
// echo ID used in the unit tests (0).
const uint8_t kIcmpEchoReplyDifferentEchoID[] = {0x00, 0x00, 0xea, 0xff,
0x0e, 0x00, 0x0b, 0x00};
} // namespace
MATCHER_P(IsIPAddress, address, "") {
// IPAddress objects don't support the "==" operator as per style, so we need
// a custom matcher.
return address.Equals(arg);
}
class IcmpSessionTest : public Test {
public:
IcmpSessionTest() : icmp_session_(&dispatcher_) {}
virtual ~IcmpSessionTest() {}
virtual void SetUp() {
icmp_session_.tick_clock_ = &testing_clock_;
icmp_ = new NiceMock<MockIcmp>();
// Passes ownership.
icmp_session_.icmp_.reset(icmp_);
ON_CALL(*icmp_, IsStarted()).WillByDefault(Return(false));
}
virtual void TearDown() {
EXPECT_CALL(*icmp_, IsStarted());
IcmpSession::kNextUniqueEchoId = 0;
}
MOCK_METHOD1(ResultCallback, void(const IcmpSession::IcmpSessionResult&));
protected:
static const char kIPAddress[];
void StartAndVerify(const IPAddress& destination) {
EXPECT_CALL(*icmp_, IsStarted());
EXPECT_CALL(*icmp_, Start()).WillOnce(Return(true));
EXPECT_CALL(dispatcher_, CreateInputHandler(icmp_->socket(), _, _));
EXPECT_CALL(dispatcher_, PostDelayedTask(_, GetTimeoutSeconds() * 1000));
EXPECT_CALL(dispatcher_, PostTask(_));
EXPECT_TRUE(Start(destination));
EXPECT_TRUE(GetSeqNumToSentRecvTime()->empty());
EXPECT_TRUE(GetReceivedEchoReplySeqNumbers()->empty());
EXPECT_CALL(*icmp_, IsStarted()).WillRepeatedly(Return(true));
}
bool Start(const IPAddress& destination) {
return icmp_session_.Start(
destination, Bind(&IcmpSessionTest::ResultCallback, Unretained(this)));
}
void Stop() {
icmp_session_.Stop();
}
bool SeqNumToSentRecvTimeContains(uint16_t seq_num) {
return icmp_session_.seq_num_to_sent_recv_time_.find(seq_num) !=
icmp_session_.seq_num_to_sent_recv_time_.end();
}
bool ReceivedEchoReplySeqNumbersContains(uint16_t seq_num) {
return icmp_session_.received_echo_reply_seq_numbers_.find(seq_num) !=
icmp_session_.received_echo_reply_seq_numbers_.end();
}
void TransmitEchoRequestTask(const IPAddress& destination,
bool transmit_request_success) {
EXPECT_CALL(*icmp_, TransmitEchoRequest(IsIPAddress(destination),
icmp_session_.echo_id_,
GetCurrentSequenceNumber()))
.WillOnce(Return(transmit_request_success));
icmp_session_.TransmitEchoRequestTask(destination);
}
void ReportResultAndStopSession() {
icmp_session_.ReportResultAndStopSession();
}
void VerifyIcmpSessionStopped() {
EXPECT_TRUE(icmp_session_.timeout_callback_.IsCancelled());
EXPECT_FALSE(icmp_session_.echo_reply_handler_);
}
void OnEchoReplyReceived(InputData* data) {
icmp_session_.OnEchoReplyReceived(data);
}
IcmpSession::IcmpSessionResult GenerateIcmpResult() {
return icmp_session_.GenerateIcmpResult();
}
std::map<uint16_t, IcmpSession::SentRecvTimePair>* GetSeqNumToSentRecvTime() {
return &icmp_session_.seq_num_to_sent_recv_time_;
}
std::set<uint16_t>* GetReceivedEchoReplySeqNumbers() {
return &icmp_session_.received_echo_reply_seq_numbers_;
}
uint16_t GetNextUniqueEchoId() const {
return IcmpSession::kNextUniqueEchoId;
}
int GetTotalNumEchoRequests() const {
return IcmpSession::kTotalNumEchoRequests;
}
int GetCurrentSequenceNumber() const {
return icmp_session_.current_sequence_number_;
}
void SetCurrentSequenceNumber(uint16_t val) {
icmp_session_.current_sequence_number_ = val;
}
size_t GetTimeoutSeconds() const { return IcmpSession::kTimeoutSeconds; }
int GetEchoRequestIntervalSeconds() const {
return IcmpSession::kEchoRequestIntervalSeconds;
}
MockIcmp* icmp_;
StrictMock<MockEventDispatcher> dispatcher_;
IcmpSession icmp_session_;
base::SimpleTestTickClock testing_clock_;
};
const char IcmpSessionTest::kIPAddress[] = "10.0.1.1";
TEST_F(IcmpSessionTest, Constructor) {
// |icmp_session_| should have been assigned the value of |kNextUniqueEchoId|
// on construction, and caused the value of this static variable to be
// incremented.
uint16_t saved_echo_id = GetNextUniqueEchoId();
EXPECT_EQ(saved_echo_id - 1, icmp_session_.echo_id_);
// The next IcmpSession object constructed, |session| should get the next
// unique value of |kNextUniqueEchoId|, and further increment this variable.
IcmpSession session(&dispatcher_);
EXPECT_EQ(saved_echo_id, session.echo_id_);
EXPECT_EQ(saved_echo_id + 1, GetNextUniqueEchoId());
}
TEST_F(IcmpSessionTest, StartWhileAlreadyStarted) {
IPAddress ipv4_destination(IPAddress::kFamilyIPv4);
EXPECT_TRUE(ipv4_destination.SetAddressFromString(kIPAddress));
StartAndVerify(ipv4_destination);
// Since an ICMP session is already started, we should fail to start it again.
EXPECT_CALL(*icmp_, Start()).Times(0);
EXPECT_CALL(dispatcher_, CreateInputHandler(_, _, _)).Times(0);
EXPECT_CALL(dispatcher_, PostDelayedTask(_, _)).Times(0);
EXPECT_CALL(dispatcher_, PostTask(_)).Times(0);
EXPECT_FALSE(Start(ipv4_destination));
}
TEST_F(IcmpSessionTest, StopWhileNotStarted) {
// Attempting to stop the ICMP session while it is not started should do
// nothing.
EXPECT_CALL(*icmp_, IsStarted()).WillOnce(Return(false));
EXPECT_CALL(*this, ResultCallback(_)).Times(0);
EXPECT_CALL(*icmp_, Stop()).Times(0);
Stop();
}
TEST_F(IcmpSessionTest, SessionSuccess) {
// Test a successful ICMP session where the sending of requests and receiving
// of replies are interleaved. Moreover, test the case where transmitting an
// echo request fails.
base::TimeTicks now = testing_clock_.NowTicks();
base::TimeTicks kSentTime1 = base::TimeTicks::FromInternalValue(10);
base::TimeTicks kRecvTime1 = base::TimeTicks::FromInternalValue(20);
base::TimeTicks kSentTime2 = base::TimeTicks::FromInternalValue(30);
base::TimeTicks kSentTime3 = base::TimeTicks::FromInternalValue(40);
base::TimeTicks kRecvTime2 = base::TimeTicks::FromInternalValue(50);
base::TimeTicks kWrongEchoIDRecvTime = base::TimeTicks::FromInternalValue(60);
base::TimeTicks kRecvTime3 = base::TimeTicks::FromInternalValue(70);
IcmpSession::IcmpSessionResult expected_result;
expected_result.push_back(kRecvTime1 - kSentTime1);
expected_result.push_back(kRecvTime2 - kSentTime2);
expected_result.push_back(kRecvTime3 - kSentTime3);
// Initiate session.
IPAddress ipv4_destination(IPAddress::kFamilyIPv4);
EXPECT_TRUE(ipv4_destination.SetAddressFromString(kIPAddress));
StartAndVerify(ipv4_destination);
// Send the first echo request.
testing_clock_.Advance(kSentTime1 - now);
now = testing_clock_.NowTicks();
SetCurrentSequenceNumber(kIcmpEchoReply1_SeqNum);
EXPECT_CALL(dispatcher_,
PostDelayedTask(_, GetEchoRequestIntervalSeconds() * 1000));
TransmitEchoRequestTask(ipv4_destination, true);
EXPECT_TRUE(GetReceivedEchoReplySeqNumbers()->empty());
EXPECT_EQ(1, GetSeqNumToSentRecvTime()->size());
EXPECT_TRUE(SeqNumToSentRecvTimeContains(kIcmpEchoReply1_SeqNum));
EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply1_SeqNum).first);
EXPECT_EQ(kIcmpEchoReply2_SeqNum, GetCurrentSequenceNumber());
// Receive first reply.
testing_clock_.Advance(kRecvTime1 - now);
now = testing_clock_.NowTicks();
uint8_t buffer_1[sizeof(kIpHeader) + sizeof(kIcmpEchoReply1)];
memcpy(buffer_1, kIpHeader, sizeof(kIpHeader));
memcpy(buffer_1 + sizeof(kIpHeader), kIcmpEchoReply1,
sizeof(kIcmpEchoReply1));
InputData data_1(reinterpret_cast<unsigned char*>(buffer_1),
sizeof(buffer_1));
EXPECT_CALL(*this, ResultCallback(_)).Times(0);
OnEchoReplyReceived(&data_1);
EXPECT_EQ(1, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_TRUE(ReceivedEchoReplySeqNumbersContains(kIcmpEchoReply1_SeqNum));
// Send the second echo request.
testing_clock_.Advance(kSentTime2 - now);
now = testing_clock_.NowTicks();
EXPECT_CALL(dispatcher_,
PostDelayedTask(_, GetEchoRequestIntervalSeconds() * 1000));
TransmitEchoRequestTask(ipv4_destination, true);
EXPECT_EQ(1, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_EQ(2, GetSeqNumToSentRecvTime()->size());
EXPECT_TRUE(SeqNumToSentRecvTimeContains(kIcmpEchoReply2_SeqNum));
EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply2_SeqNum).first);
EXPECT_EQ(kIcmpEchoReply3_SeqNum, GetCurrentSequenceNumber());
// Sending final request.
testing_clock_.Advance(kSentTime3 - now);
now = testing_clock_.NowTicks();
EXPECT_CALL(dispatcher_, PostDelayedTask(_, _)).Times(0);
EXPECT_CALL(*icmp_, Stop()).Times(0);
TransmitEchoRequestTask(ipv4_destination, true);
EXPECT_EQ(1, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_EQ(3, GetSeqNumToSentRecvTime()->size());
EXPECT_TRUE(SeqNumToSentRecvTimeContains(kIcmpEchoReply3_SeqNum));
EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply3_SeqNum).first);
EXPECT_EQ(kIcmpEchoReply3_SeqNum + 1, GetCurrentSequenceNumber());
// Receive second reply.
testing_clock_.Advance(kRecvTime2 - now);
now = testing_clock_.NowTicks();
uint8_t buffer_2[sizeof(kIpHeader) + sizeof(kIcmpEchoReply2)];
memcpy(buffer_2, kIpHeader, sizeof(kIpHeader));
memcpy(buffer_2 + sizeof(kIpHeader), kIcmpEchoReply2,
sizeof(kIcmpEchoReply2));
InputData data_2(reinterpret_cast<unsigned char*>(buffer_2),
sizeof(buffer_2));
EXPECT_CALL(*this, ResultCallback(_)).Times(0);
EXPECT_CALL(*icmp_, Stop()).Times(0);
OnEchoReplyReceived(&data_2);
EXPECT_EQ(3, GetSeqNumToSentRecvTime()->size());
EXPECT_EQ(2, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_TRUE(ReceivedEchoReplySeqNumbersContains(kIcmpEchoReply2_SeqNum));
// Receive a reply that has an echo ID that does not match that of this
// ICMP session. This reply will not be processed.
testing_clock_.Advance(kWrongEchoIDRecvTime - now);
now = testing_clock_.NowTicks();
uint8_t buffer_3[sizeof(kIpHeader) + sizeof(kIcmpEchoReplyDifferentEchoID)];
memcpy(buffer_3, kIpHeader, sizeof(kIpHeader));
memcpy(buffer_3 + sizeof(kIpHeader), kIcmpEchoReplyDifferentEchoID,
sizeof(kIcmpEchoReplyDifferentEchoID));
InputData data_3(reinterpret_cast<unsigned char*>(buffer_3),
sizeof(buffer_3));
EXPECT_CALL(*this, ResultCallback(_)).Times(0);
EXPECT_CALL(*icmp_, Stop()).Times(0);
OnEchoReplyReceived(&data_3);
EXPECT_EQ(3, GetSeqNumToSentRecvTime()->size());
EXPECT_EQ(2, GetReceivedEchoReplySeqNumbers()->size());
// Receive third reply, which concludes the ICMP session.
testing_clock_.Advance(kRecvTime3 - now);
now = testing_clock_.NowTicks();
uint8_t buffer_4[sizeof(kIpHeader) + sizeof(kIcmpEchoReply3)];
memcpy(buffer_4, kIpHeader, sizeof(kIpHeader));
memcpy(buffer_4 + sizeof(kIpHeader), kIcmpEchoReply3,
sizeof(kIcmpEchoReply3));
InputData data_4(reinterpret_cast<unsigned char*>(buffer_4),
sizeof(buffer_4));
EXPECT_CALL(*this, ResultCallback(expected_result));
EXPECT_CALL(*icmp_, Stop());
OnEchoReplyReceived(&data_4);
EXPECT_EQ(3, GetSeqNumToSentRecvTime()->size());
EXPECT_EQ(3, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_TRUE(ReceivedEchoReplySeqNumbersContains(kIcmpEchoReply3_SeqNum));
VerifyIcmpSessionStopped();
}
TEST_F(IcmpSessionTest, SessionTimeoutOrInterrupted) {
// Test a failed ICMP session where we neither send out all echo requests nor
// receive all echo replies before stopping the ICMP session (because of a
// timeout or a manually-triggered stop). Moreover, test that echo requests
// that are sent unsuccessfully are sent again.
base::TimeTicks now = testing_clock_.NowTicks();
base::TimeTicks kSentTime1 = base::TimeTicks::FromInternalValue(10);
base::TimeTicks kSentTime2 = base::TimeTicks::FromInternalValue(20);
base::TimeTicks kRecvTime1 = base::TimeTicks::FromInternalValue(30);
base::TimeTicks kResendTime1 = base::TimeTicks::FromInternalValue(40);
IcmpSession::IcmpSessionResult expected_partial_result;
expected_partial_result.push_back(kRecvTime1 - kSentTime1);
expected_partial_result.push_back(base::TimeDelta());
// Initiate session.
IPAddress ipv4_destination(IPAddress::kFamilyIPv4);
EXPECT_TRUE(ipv4_destination.SetAddressFromString(kIPAddress));
StartAndVerify(ipv4_destination);
// Send the first echo request successfully.
testing_clock_.Advance(kSentTime1 - now);
now = testing_clock_.NowTicks();
SetCurrentSequenceNumber(kIcmpEchoReply1_SeqNum);
EXPECT_CALL(dispatcher_,
PostDelayedTask(_, GetEchoRequestIntervalSeconds() * 1000));
TransmitEchoRequestTask(ipv4_destination, true);
EXPECT_TRUE(GetReceivedEchoReplySeqNumbers()->empty());
EXPECT_EQ(1, GetSeqNumToSentRecvTime()->size());
EXPECT_TRUE(SeqNumToSentRecvTimeContains(kIcmpEchoReply1_SeqNum));
EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply1_SeqNum).first);
EXPECT_EQ(kIcmpEchoReply2_SeqNum, GetCurrentSequenceNumber());
// Send the second echo request unsuccessfully.
testing_clock_.Advance(kSentTime2 - now);
now = testing_clock_.NowTicks();
EXPECT_CALL(dispatcher_,
PostDelayedTask(_, GetEchoRequestIntervalSeconds() * 1000));
TransmitEchoRequestTask(ipv4_destination, false);
EXPECT_TRUE(GetReceivedEchoReplySeqNumbers()->empty());
EXPECT_EQ(1, GetSeqNumToSentRecvTime()->size());
EXPECT_FALSE(SeqNumToSentRecvTimeContains(kIcmpEchoReply2_SeqNum));
// The sequence number should still be incremented when we fail to transmit an
// echo request.
EXPECT_EQ(kIcmpEchoReply3_SeqNum, GetCurrentSequenceNumber());
// Receive first reply.
testing_clock_.Advance(kRecvTime1 - now);
now = testing_clock_.NowTicks();
uint8_t buffer_1[sizeof(kIpHeader) + sizeof(kIcmpEchoReply1)];
memcpy(buffer_1, kIpHeader, sizeof(kIpHeader));
memcpy(buffer_1 + sizeof(kIpHeader), kIcmpEchoReply1,
sizeof(kIcmpEchoReply1));
InputData data_1(reinterpret_cast<unsigned char*>(buffer_1),
sizeof(buffer_1));
EXPECT_CALL(*this, ResultCallback(_)).Times(0);
OnEchoReplyReceived(&data_1);
EXPECT_EQ(1, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_TRUE(ReceivedEchoReplySeqNumbersContains(kIcmpEchoReply1_SeqNum));
// Resend second echo request successfully.
testing_clock_.Advance(kResendTime1 - now);
now = testing_clock_.NowTicks();
EXPECT_CALL(dispatcher_,
PostDelayedTask(_, GetEchoRequestIntervalSeconds() * 1000));
TransmitEchoRequestTask(ipv4_destination, true);
EXPECT_EQ(1, GetReceivedEchoReplySeqNumbers()->size());
EXPECT_EQ(2, GetSeqNumToSentRecvTime()->size());
EXPECT_TRUE(SeqNumToSentRecvTimeContains(kIcmpEchoReply3_SeqNum));
EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply3_SeqNum).first);
EXPECT_EQ(kIcmpEchoReply3_SeqNum + 1, GetCurrentSequenceNumber());
// Timeout triggered, so report partial results.
EXPECT_CALL(*this, ResultCallback(expected_partial_result));
EXPECT_CALL(*icmp_, Stop());
ReportResultAndStopSession();
EXPECT_EQ(2, GetSeqNumToSentRecvTime()->size());
EXPECT_EQ(1, GetReceivedEchoReplySeqNumbers()->size());
VerifyIcmpSessionStopped();
}
TEST_F(IcmpSessionTest, DoNotReportResultsOnStop) {
// Initiate session.
IPAddress ipv4_destination(IPAddress::kFamilyIPv4);
EXPECT_TRUE(ipv4_destination.SetAddressFromString(kIPAddress));
StartAndVerify(ipv4_destination);
// Session interrupted manually by calling Stop(), so do not report results.
EXPECT_CALL(*this, ResultCallback(_)).Times(0);
EXPECT_CALL(*icmp_, Stop());
Stop();
VerifyIcmpSessionStopped();
}
TEST_F(IcmpSessionTest, AnyRepliesReceived) {
IcmpSession::IcmpSessionResult none_sent;
EXPECT_FALSE(IcmpSession::AnyRepliesReceived(none_sent));
IcmpSession::IcmpSessionResult two_sent_none_received;
two_sent_none_received.push_back(base::TimeDelta());
two_sent_none_received.push_back(base::TimeDelta());
EXPECT_FALSE(IcmpSession::AnyRepliesReceived(two_sent_none_received));
IcmpSession::IcmpSessionResult one_sent_one_received;
one_sent_one_received.push_back(base::TimeDelta::FromSeconds(10));
EXPECT_TRUE(IcmpSession::AnyRepliesReceived(one_sent_one_received));
IcmpSession::IcmpSessionResult two_sent_one_received;
two_sent_one_received.push_back(base::TimeDelta::FromSeconds(20));
two_sent_one_received.push_back(base::TimeDelta());
EXPECT_TRUE(IcmpSession::AnyRepliesReceived(two_sent_one_received));
}
TEST_F(IcmpSessionTest, IsPacketLossPercentageGreaterThan) {
// If we sent no echo requests out, we expect no replies, therefore we have
// 0% packet loss.
IcmpSession::IcmpSessionResult none_sent_none_received;
EXPECT_FALSE(IcmpSession::IsPacketLossPercentageGreaterThan(
none_sent_none_received, 0));
// If we receive all replies, we experience 0% packet loss.
IcmpSession::IcmpSessionResult three_sent_three_received;
three_sent_three_received.push_back(base::TimeDelta::FromSeconds(10));
three_sent_three_received.push_back(base::TimeDelta::FromSeconds(10));
three_sent_three_received.push_back(base::TimeDelta::FromSeconds(10));
EXPECT_FALSE(IcmpSession::IsPacketLossPercentageGreaterThan(
three_sent_three_received, 0));
// If we sent 3 requests and received 2 replies, we have ~33% packet loss.
IcmpSession::IcmpSessionResult three_sent_two_received;
three_sent_two_received.push_back(base::TimeDelta::FromSeconds(10));
three_sent_two_received.push_back(base::TimeDelta::FromSeconds(10));
three_sent_two_received.push_back(base::TimeDelta());
EXPECT_FALSE(IcmpSession::IsPacketLossPercentageGreaterThan(
three_sent_two_received, 60));
EXPECT_FALSE(IcmpSession::IsPacketLossPercentageGreaterThan(
three_sent_two_received, 33));
EXPECT_TRUE(IcmpSession::IsPacketLossPercentageGreaterThan(
three_sent_two_received, 32));
EXPECT_TRUE(IcmpSession::IsPacketLossPercentageGreaterThan(
three_sent_two_received, 10));
}
} // namespace shill
|
756721376bdec58f6922199a5e3471228294e1b7 | 41fd2e43649ccc2c9cdd6bbcddf159babdf36dba | /sail/Serializable.cpp | 5a90fcb300ea6be0bce985c8901d202757cca606 | [] | no_license | fredfeng/compass | 84d37183c11692da77b3c8cf7666c15a5b524390 | 3063df1a86e9473bbd62d52e9002743fd7e90c3b | refs/heads/master | 2020-04-10T11:57:17.616921 | 2015-03-10T16:54:21 | 2015-03-10T16:54:21 | 31,969,036 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | Serializable.cpp | /*
* Serializable.cpp
*
* Created on: Apr 12, 2010
* Author: tdillig
*/
#include "Serializable.h"
Serializable::Serializable()
{
// TODO Auto-generated constructor stub
}
Serializable::~Serializable()
{
// TODO Auto-generated destructor stub
}
|
f941f420e7a71f1fc07b722137b3c41b16285cc8 | f246ba568721c6458d25a90ec59e2a3253f47ab4 | /code/userprog/exception.cc | dc7bfae31df7101d333dd44f6d1e007b0e87fd54 | [
"MIT-Modern-Variant"
] | permissive | UCDP-Brony/NachOS | 290e90604e848a72be81ca667109065753ab3e61 | c5467c7b204826a0899750a2d30723de290813d8 | refs/heads/master | 2021-04-29T10:43:24.049141 | 2017-01-25T16:46:30 | 2017-01-25T16:46:30 | 77,833,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,974 | cc | exception.cc | // exception.cc
// Entry point into the Nachos kernel from user programs.
// There are two kinds of things that can cause control to
// transfer back to here from user code:
//
// syscall -- The user code explicitly requests to call a procedure
// in the Nachos kernel. Right now, the only function we support is
// "Halt".
//
// exceptions -- The user code does something that the CPU can't handle.
// For instance, accessing memory that doesn't exist, arithmetic errors,
// etc.
//
// Interrupts (which can also cause control to transfer from user
// code into the Nachos kernel) are handled elsewhere.
//
// For now, this only handles the Halt() system call.
// Everything else core dumps.
//
// Copyright (c) 1992-1993 The Regents of the University of California.
// All rights reserved. See copyright.h for copyright notice and limitation
// of liability and disclaimer of warranty provisions.
#include "copyright.h"
#include "system.h"
#include "syscall.h"
#ifdef CHANGED
#include "userthread.h"
#include "usersem.h"
#include "forkexec.h"
#endif //CHANGED
//----------------------------------------------------------------------
// UpdatePC : Increments the Program Counter register in order to resume
// the user program immediately after the "syscall" instruction.
//----------------------------------------------------------------------
static void
UpdatePC ()
{
int pc = machine->ReadRegister (PCReg);
machine->WriteRegister (PrevPCReg, pc);
pc = machine->ReadRegister (NextPCReg);
machine->WriteRegister (PCReg, pc);
pc += 4;
machine->WriteRegister (NextPCReg, pc);
}
//----------------------------------------------------------------------
// cleanUserThreads
// Delete threads in the same address space as the exiting process.
//
// Look for every thread in the same address space as the exiting process.
// Then delete them so the memory is freed.
//----------------------------------------------------------------------
void cleanUserThreads(){
Thread *tmp = scheduler->FindNextToRun();
Thread *firstThread = tmp;
bool firstThreadDeleted = false;
if(tmp!=NULL){
do{
if(firstThreadDeleted){
firstThread = tmp;
firstThreadDeleted = false;
}
if(tmp->space == currentThread->space){
if(tmp == firstThread){
firstThreadDeleted = true;
}
delete tmp;
} else {
scheduler->ReadyToRun(tmp);
}
tmp = scheduler->FindNextToRun();
}
while(tmp != firstThread && tmp != NULL);
if(tmp!=NULL){
scheduler->ReadyToRun(tmp);
}
}
}
//----------------------------------------------------------------------
// ExceptionHandler
// Entry point into the Nachos kernel. Called when a user program
// is executing, and either does a syscall, or generates an addressing
// or arithmetic exception.
//
// For system calls, the following is the calling convention:
//
// system call code -- r2
// arg1 -- r4
// arg2 -- r5
// arg3 -- r6
// arg4 -- r7
//
// The result of the system call, if any, must be put back into r2.
//
// And don't forget to increment the pc before returning. (Or else you'll
// loop making the same system call forever!
//
// "which" is the kind of exception. The list of possible exceptions
// are in machine.h.
//----------------------------------------------------------------------
void ExceptionHandler(ExceptionType which)
{
int type = machine->ReadRegister(2);
#ifndef CHANGED // Noter le if*n*def
if ((which == SyscallException) && (type == SC_Halt)) {
DEBUG('a', "Shutdown, initiated by user program.\n");
interrupt->Halt();
} else {
printf("Unexpected user mode exception %d %d\n", which, type);
ASSERT(FALSE);
}
#else // CHANGED
if (which == SyscallException) {
switch (type) {
case SC_Halt: {
DEBUG('a', "Shutdown, initiated by user program.\n");
semNbProcess->P();
cleanUserThreads();
nbProcess--;
if(nbProcess == 0){
semNbProcess->V();
interrupt->Halt();
} else {
semNbProcess->V();
currentThread->Finish();
}
break;
}
case SC_PutChar: {
DEBUG('a', "Call to PutChar \n");
synchConsole->SynchPutChar((char)machine->ReadRegister(4));
break;
}
case SC_copyStringFromMachine: {
DEBUG('a', "Call to copyStringFromMachine \n");
interrupt->copyStringFromMachine(machine->ReadRegister(4), (char *)machine->ReadRegister(5), (unsigned)machine->ReadRegister(6));
break;
}
case SC_SynchPutString: {
DEBUG('a', "Call to SynchPutString \n");
char to[MAX_STRING_SIZE];
interrupt->copyStringFromMachine(machine->ReadRegister(4), to, MAX_STRING_SIZE);
synchConsole->SynchPutString(to);
break;
}
case SC_Exit: {
DEBUG('a', "Call to Exit\n");
int valReturn = machine->ReadRegister(4);
DEBUG('a',"Program finished with return value of %d \n",valReturn);
cleanUserThreads();
DEBUG('a',"exiting \n"); //Necessaire ?
break;
}
case SC_SynchGetChar: {
DEBUG('a', "Call to SynchGetChar \n");
machine->WriteRegister(2,(int)synchConsole->SynchGetChar());
break;
}
case SC_SynchGetString:{
DEBUG('a', "Call to SynchGetChar \n");
char str[MAX_STRING_SIZE];
int length = machine->ReadRegister(5);
synchConsole->SynchGetString(str,length);
interrupt->copyStringToMachine(machine->ReadRegister(4),str,length);
break;
}
case SC_SynchPutInt:{
synchConsole->SynchPutInt(machine->ReadRegister(4));
break;
}
case SC_SynchGetInt:{
int res;
synchConsole->SynchGetInt(&res);
//int = 2 octets sur anciennes machines, 4 sur 32 bits
//Probleme possible sur 64 bits, 8 octets, max 4
machine->WriteMem(machine->ReadRegister(4),sizeof(int),res);
break;
}
case SC_UserThreadCreate:{
machine->WriteRegister(2, do_UserThreadCreate(machine->ReadRegister(4), machine->ReadRegister(5)));
break;
}
case SC_UserThreadExit:{
do_UserThreadExit();
break;
}
case SC_UserThreadJoin:{
do_UserThreadJoin(machine->ReadRegister(4));
break;
}
case SC_SemCreate:{
machine->WriteRegister(2,userSem->do_SemCreate(machine->ReadRegister(4)));
break;
}
case SC_SemP:{
userSem->do_SemP(machine->ReadRegister(4));
break;
}
case SC_SemV:{
userSem->do_SemV(machine->ReadRegister(4));
break;
}
case SC_SemDestroy:{
userSem->do_SemDestroy(machine->ReadRegister(4));
break;
}
case SC_ForkExec:{
semNbProcess->P();
nbProcess++;
semNbProcess->V();
char to[MAX_STRING_SIZE];
interrupt->copyStringFromMachine(machine->ReadRegister(4), to, MAX_STRING_SIZE);
machine->WriteRegister(2,do_ForkExec(to));
break;
}
default: {
printf("Unexpected user mode exception %d %d\n", which, type);
ASSERT(FALSE);
}
}
}
#endif // CHANGED
UpdatePC();
}
|
49e277a7b4564de113f6ab80f6b594adad6db7e5 | 180d9d4b0683c01e6ebdee2914d2e496958a6e8d | /client/build-mychat-Desktop_x86_windows_msvc2019_pe_64bit-Debug/ui_mainwindow.h | 399b01b51fb2c7e67e7ff6a4d8585886c34a297d | [] | no_license | xiewenhui777/QTchat | d5f0c4ae7d6aa06ea65deda00abe54a2d9bf1a82 | a93b623dd2eefa623d7668893c25141b67dc488b | refs/heads/main | 2023-06-15T18:55:40.553287 | 2021-07-08T11:05:35 | 2021-07-08T11:05:35 | 384,094,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,723 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 6.2.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_MAINWINDOW_H
#define UI_MAINWINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenuBar>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QWidget *centralwidget;
QLabel *label;
QLineEdit *lineEdit_IP;
QLabel *label_2;
QLineEdit *lineEdit_Port;
QTextEdit *textEdit_Recv;
QTextEdit *textEdit_Send;
QLabel *label_3;
QLabel *label_4;
QPushButton *pushButton_Connect;
QPushButton *pushButton_Send;
QMenuBar *menubar;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(468, 338);
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
label = new QLabel(centralwidget);
label->setObjectName(QString::fromUtf8("label"));
label->setGeometry(QRect(20, 10, 54, 12));
lineEdit_IP = new QLineEdit(centralwidget);
lineEdit_IP->setObjectName(QString::fromUtf8("lineEdit_IP"));
lineEdit_IP->setGeometry(QRect(40, 10, 113, 20));
label_2 = new QLabel(centralwidget);
label_2->setObjectName(QString::fromUtf8("label_2"));
label_2->setGeometry(QRect(170, 10, 54, 12));
lineEdit_Port = new QLineEdit(centralwidget);
lineEdit_Port->setObjectName(QString::fromUtf8("lineEdit_Port"));
lineEdit_Port->setGeometry(QRect(220, 10, 113, 20));
textEdit_Recv = new QTextEdit(centralwidget);
textEdit_Recv->setObjectName(QString::fromUtf8("textEdit_Recv"));
textEdit_Recv->setGeometry(QRect(30, 180, 331, 71));
textEdit_Send = new QTextEdit(centralwidget);
textEdit_Send->setObjectName(QString::fromUtf8("textEdit_Send"));
textEdit_Send->setGeometry(QRect(30, 60, 331, 71));
label_3 = new QLabel(centralwidget);
label_3->setObjectName(QString::fromUtf8("label_3"));
label_3->setGeometry(QRect(10, 40, 54, 12));
label_4 = new QLabel(centralwidget);
label_4->setObjectName(QString::fromUtf8("label_4"));
label_4->setGeometry(QRect(10, 150, 54, 12));
pushButton_Connect = new QPushButton(centralwidget);
pushButton_Connect->setObjectName(QString::fromUtf8("pushButton_Connect"));
pushButton_Connect->setGeometry(QRect(380, 10, 75, 23));
pushButton_Send = new QPushButton(centralwidget);
pushButton_Send->setObjectName(QString::fromUtf8("pushButton_Send"));
pushButton_Send->setGeometry(QRect(380, 260, 75, 23));
MainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(MainWindow);
menubar->setObjectName(QString::fromUtf8("menubar"));
menubar->setGeometry(QRect(0, 0, 468, 23));
MainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "MainWindow", nullptr));
label->setText(QCoreApplication::translate("MainWindow", "IP:", nullptr));
label_2->setText(QCoreApplication::translate("MainWindow", "\347\253\257\345\217\243", nullptr));
label_3->setText(QCoreApplication::translate("MainWindow", "\345\217\221\351\200\201\357\274\232", nullptr));
label_4->setText(QCoreApplication::translate("MainWindow", "\346\216\245\346\224\266\357\274\232", nullptr));
pushButton_Connect->setText(QCoreApplication::translate("MainWindow", "\350\277\236\346\216\245", nullptr));
pushButton_Send->setText(QCoreApplication::translate("MainWindow", "\345\217\221\351\200\201", nullptr));
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_MAINWINDOW_H
|
192a14835d736781c5b65de3fc6c2bd38ce014e7 | 11e01ca60afbb429fb4da09a704dd3d764d12773 | /src/Day4/day4.h | 083ccd27682c4439ea58b4136cf2052c9c63ff5d | [] | no_license | Reeceeboii/Advent-Of-Code-2019 | 785a8866ec11b5d4e08e4db86b0877d9762c5af9 | 3c824008c9362d170356c154cbd98011ae790612 | refs/heads/master | 2020-09-22T09:59:27.985198 | 2019-12-08T02:28:15 | 2019-12-08T02:28:15 | 225,147,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 344 | h | day4.h | //
// Created by reece on 04/12/2019.
//
#ifndef ADVENT_OF_CODE_2019_DAY4_H
#define ADVENT_OF_CODE_2019_DAY4_H
#include <string>
const int LOWER = 231832;
const int HIGHER = 767346;
bool adjacent_digits(int potential_pwd);
bool never_decrease(int potential_pwd);
int day_4_part_1();
int day_4_part_2();
#endif //ADVENT_OF_CODE_2019_DAY4_H
|
4804996d99742be1e81945abd27d9474a2debaae | efc39e68b3e7f588cebe247a485013c84624ff55 | /frontend/services/gui/src/gui_utils.cpp | d8bf72c733791d46635024200f8912c241d23aa9 | [
"BSD-3-Clause"
] | permissive | invor/megamol | 5d913a6ed5f8315f15c938f6494da84ac5093ece | 36f1061d34e930927cb18ae6b79690fe79d6c0ba | refs/heads/master | 2023-08-04T22:10:56.033868 | 2023-03-20T15:33:49 | 2023-03-20T15:33:49 | 204,038,195 | 2 | 0 | BSD-3-Clause | 2022-10-10T16:59:40 | 2019-08-23T16:58:27 | C++ | UTF-8 | C++ | false | false | 387 | cpp | gui_utils.cpp | /*
* gui_utils.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "gui_utils.h"
ImGuiID megamol::gui::gui_generated_uid = 0;
unsigned int megamol::gui::gui_context_count = 0;
std::vector<std::string> megamol::gui::gui_resource_paths;
float megamol::gui::gui_mouse_wheel = 0.0f;
megamol::gui::GUIScaling megamol::gui::gui_scaling;
|
08cdda61d7b1e810bf6cd6fd8e3b8fca677db9c1 | e4ca0f97629a01c607d113165b376ae3489d94e3 | /common/dvb_frontend.h | 069e260a85a26f937f7ef44858abd2baacbac70a | [] | no_license | nqzero/me-tv | 200c379bf9647a68cff5367c5a4a317e41823ba3 | ce28d3afd6f132c80b694c03469303a698d3f8dd | refs/heads/master | 2016-09-05T23:18:04.975632 | 2011-05-16T15:00:05 | 2011-05-16T15:00:05 | 1,718,864 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,616 | h | dvb_frontend.h | /*
* Copyright (C) 2011 Michael Lamothe
*
* This file is part of Me TV
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
#ifndef __DVB_FRONTEND_H__
#define __DVB_FRONTEND_H__
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <fcntl.h>
#include <stdint.h>
#include <giomm.h>
#include <linux/dvb/frontend.h>
#include "dvb_transponder.h"
#define LNB_HIGH_VALUE 10600000
#define LNB_LOW_VALUE 9750000
#define LNB_SWITCH_VALUE 11700000
struct diseqc_cmd
{
struct dvb_diseqc_master_cmd cmd;
uint32_t wait;
};
namespace Dvb
{
class Adapter
{
private:
String path;
guint index;
public:
Adapter(guint adapter_index) : index(adapter_index)
{
path = String::compose("/dev/dvb/adapter%1", index);
}
String get_frontend_path(guint frontend) const
{
return String::compose(path + "/frontend%1", frontend);
}
String get_demux_path() const { return path + "/demux0"; }
String get_dvr_path() const { return path + "/dvr0"; }
};
class Frontend
{
private:
const Adapter& adapter;
int fd;
struct dvb_frontend_info frontend_info;
void wait_lock(guint wait_seconds);
void diseqc(int satellite_number, int polarisation, int hi_band);
guint frontend;
struct dvb_frontend_parameters frontend_parameters;
public:
Frontend(const Adapter& adapter, guint frontend);
~Frontend();
void open();
void close();
void tune_to(const Transponder& transponder, guint timeout = 2000);
const struct dvb_frontend_parameters& get_frontend_parameters() const;
fe_type_t get_frontend_type() const { return frontend_info.type; }
const struct dvb_frontend_info& get_frontend_info() const;
String get_name() const { return get_frontend_info().name; }
int get_fd() const { return fd; }
const Adapter& get_adapter() const { return adapter; }
String get_path() const { return adapter.get_frontend_path(frontend); }
guint get_signal_strength();
guint get_snr();
};
}
#endif
|
1738438d24f15b7bb0186572f6f884a14b921d33 | 91ded5d80a74995cd95375737ac40f548612b6df | /arm_2.ino | e69658ef0707b415ca605ec8dbf119d819b3bd46 | [] | no_license | Ecstasy-EC/Yuyuan-Cup-2017 | cb3e5483c596be1837e377df6805e584904f8d33 | 52a8e8bf9188c5bc6c9c334b41b45de8fb75fc35 | refs/heads/master | 2021-08-08T23:27:41.547274 | 2017-11-11T16:10:12 | 2017-11-11T16:10:12 | 103,081,848 | 0 | 1 | null | 2017-10-14T23:58:07 | 2017-09-11T02:44:23 | Python | UTF-8 | C++ | false | false | 1,200 | ino | arm_2.ino | #include <LobotServoController.h>
#include <math.h>
LobotServoController myse(Serial1);
void catch_block(double dist1);
void release_block(void);
void setup() {
// put your setup code here, to run once:
Serial1.begin(9600);
myse.moveServos(4,2000,1,2000,2,2500,3,1200,4,2000); //舵机初始化
double dist1=80.0;
catch_block(dist1);
delay(2000);
release_block();
}
void loop() {
}
void catch_block(double dist1)
{
double x=dist1+36.5;
double a,b,c;
double pi=3.1415926;
int n3,n4;
a=69.0+52.0;//initial 49
b=88.52;
c=sqrt(129.0*129.0+53.5*53.5);//initial 129.0 53.5
n3=int(1500+2000.0*(-acos(53.5/c)+acos((b*b+c*c-a*a-x*x)/(2*b*c)))/pi);
n4=int(1500-2000*(pi-acos(a/sqrt(x*x+a*a))-acos((b*b+a*a+x*x-c*c)/(2*b*sqrt(x*x+a*a))))/pi);
//Serial.println(n3);
//Serial.println(n4);
delay(2000);
myse.moveServos(2,1000,3,n3,4,n4);
delay(1000);
/*myse.moveServo(3,n3,1000);
delay(1000);
myse.moveServo(4,n4,1000);
delay(1000);
*/
myse.moveServo(1,2600,1000);
delay(1000);
myse.moveServos(2,1000,3,1200,4,2000);
}
void release_block(void)
{
myse.moveServos(2,1000,3,2200,4,700);
delay(1000);
myse.moveServo(1,2000,1000);
delay(1000);
}
|
36099f747c6fd3c265ae9e616fea3bf95368a4f1 | d71e813377f638afd03e3a19af3fdca010200a2e | /client/world.cpp | 515f7582092a737f363ce5dbc72a49d1cd2498fe | [] | no_license | kjocevicius/BubbleChat | b8ea444e3c786793bb4930d017ba9d66f46d978c | 1b397ec8235c689c1c0987f5bb3af95effde0b56 | refs/heads/master | 2021-06-21T03:21:04.025899 | 2012-12-20T14:26:35 | 2012-12-20T14:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,316 | cpp | world.cpp | #include "world.h"
#include "display.h"
#include <string>
#include <fstream>
using namespace std;
const int BLOCK_SIZE = 64;
World::World(const char *file) {
ifstream f(file);
f >> tileCount;
tiles = new SDL_Surface*[tileCount];
for (int i = 0; i < tileCount; ++i) {
string title;
f >> title;
string filename = string("data/world/") + title + string(".bmp");
tiles[i] = Display::loadBMP(filename.c_str());
if (tiles[i]->w != BLOCK_SIZE || tiles[i]->h != BLOCK_SIZE)
throw "Wrong tile texture size";
}
f >> height >> width;
data = new int[width*height];
for (int i = 0; i < height; ++i)
for (int j = 0; j < width; ++j) {
int now;
if (!(f >> now))
throw "Failed to read tile number";
if (now < 0 || now >= tileCount)
throw "Map tile number out of bounds";
data[i*width+j] = now;
}
f.close();
}
SDL_Surface* World::getSurface() {
Uint32 flags;
SDL_Surface *world = SDL_CreateRGBSurface(flags, width*BLOCK_SIZE, height*BLOCK_SIZE, 32, 0, 0, 0, 0);
SDL_Rect rSrc;
rSrc.x = rSrc.y = 0;
rSrc.w = rSrc.h = BLOCK_SIZE;
SDL_Rect rDst;
rDst.w = rDst.h = BLOCK_SIZE;
for (int i = 0; i < 10; ++i)
for (int j = 0; j < 10; j++) {
rDst.x = j*BLOCK_SIZE;
rDst.y = i*BLOCK_SIZE;
SDL_BlitSurface(tiles[data[i*height+j]], &rSrc, world, &rDst);
}
return world;
}
|
c859919431668fe0e0755c9456b5954270875712 | b6118068b482077be56cc25143862a025a3ed10c | /d05/ex05/PresidentialPardonForm.cpp | 34a3dd8c3ddc32bf8bdb9666e8a2e3f5cd396a46 | [] | no_license | aisenn/CPP_Piscine | 25807f08857e34a26895fa4d3e377e4174296c46 | 7433d0139c19f6434db782e940ca269a54695ff1 | refs/heads/master | 2020-06-10T20:04:50.684325 | 2019-07-07T08:43:45 | 2019-07-07T08:43:45 | 193,731,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,624 | cpp | PresidentialPardonForm.cpp | #include "PresidentialPardonForm.hpp"
PresidentialPardonForm::PresidentialPardonForm()
: Form("Presidential Pardon Form", 25, 5) { return; }
PresidentialPardonForm::PresidentialPardonForm( PresidentialPardonForm const &rhs )
: Form("Presidential Pardon Form", 25, 5) {
*this = rhs;
std::cout << "Intern creates a "
<< this->getName() << " (s.grade " << this->getSinginGrade() << ", ex.grade " << this->getExecuteGrade()
<< ") targeted on " << this->getTarget() << "("
<< (this->isSigned() ? "Signed" : "Unsigned") << ")"
<< std::endl;
}
PresidentialPardonForm::~PresidentialPardonForm() { return; }
PresidentialPardonForm &PresidentialPardonForm::operator=( PresidentialPardonForm const &rhs ) {
if (this != &rhs)
this->_target = rhs._target;
return *this;
}
PresidentialPardonForm::PresidentialPardonForm(std::string const &target):
Form("Presidential Pardon Form", 25, 5), _target(target) {
std::cout << "Intern creates a "
<< this->getName() << " (s.grade " << this->getSinginGrade() << ", ex.grade " << this->getExecuteGrade()
<< ") targeted on " << this->getTarget() << "("
<< (this->isSigned() ? "Signed" : "Unsigned") << ")"
<< std::endl;
}
void PresidentialPardonForm::execute( Bureaucrat const & executor ) const {
try {
Form::execute(executor);
std::cout << this->getTarget() << " has been pardoned by Zafod Beeblebrox" << std::endl;
}
catch (std::exception &e) {
std::cout << this->getTarget() << " was not pardoned "<< e.what() << std::endl;
}
}
std::string const &PresidentialPardonForm::getTarget(void) const { return (this->_target); }
|
6289751a1526c0293542fca38b38d47bcaa130f5 | 3274a78203983a34ea4d44f1e5885d8c015ab136 | /ch-03/exe10.cpp | c36daf37670f170dbc61cb695e429975741f6c1b | [] | no_license | beingbing/pppucpp | 98392a740110cca4b0166ad6e7481178806c0517 | 8d2a7bca0f343318a28002ec741e648c9d0f9de2 | refs/heads/master | 2023-07-07T07:36:33.863060 | 2021-08-08T13:13:24 | 2021-08-08T13:13:24 | 137,395,259 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 518 | cpp | exe10.cpp | #include "std_lib_facilities.h"
using namespace std;
int main () {
char oprtr;
double opr1=0.0, opr2=0.0;
cout<<"Enter an operator followed by two operands\n";
cin>>oprtr>>opr1>>opr2;
if (oprtr == '/' && opr2 == 0) {
error("you can not divide with zero");
}
switch(oprtr) {
case '+': cout<<opr1+opr2<<"\n";break;
case '-': cout<<opr1-opr2<<"\n";break;
case '*': cout<<opr1*opr2<<"\n";break;
case '/': cout<<opr1/opr2<<"\n";break;
default: cout<<"I didn't recognize that operator\n";
}
return 0;
} |
289627aa5e4e3f202599d7eed511734f8835c2ce | 485ff07efdbb3e56b9633e3134b1c81271c2d8a3 | /cpp/SampleMigration/V6/SamplePropertiesPages/App.cpp | 41ae1361f6c42fac4e7f9ff0a1a257a03adaece9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mcneel/rhino-developer-samples | 8f8a332d4d6a9a5fa064be6c1532e665d37c8f13 | 4fb376adcf94f9d583878d1c1208038f86bde312 | refs/heads/7 | 2023-08-18T22:04:34.036498 | 2023-06-08T16:28:43 | 2023-06-08T16:28:43 | 72,225,588 | 526 | 362 | NOASSERTION | 2023-09-06T20:29:31 | 2016-10-28T16:52:21 | C++ | UTF-8 | C++ | false | false | 2,384 | cpp | App.cpp | #include "StdAfx.h"
#include "App.h"
const COLORREF CApp::DEFULLT_OBJECT_COLOR = RGB(255,0,0);
CApp::CApp(void)
: m_default_object_color(ON_Color::UnsetColor)
{
}
CApp::~CApp(void)
{
}
CApp& CApp::App()
{
static CApp app;
return app;
}
#define DefaultObjectColorKey L"DefaultObjectColor"
void CApp::LoadProfile( LPCTSTR lpszSection, CRhinoProfileContext& pc )
{
COLORREF color = m_default_object_color;
if (pc.LoadProfileColor(lpszSection, DefaultObjectColorKey, &color) && color!= m_default_object_color)
m_default_object_color = color;
}
void CApp::SaveProfile( LPCTSTR lpszSection, CRhinoProfileContext& pc )
{
if (m_default_object_color == ON_Color::UnsetColor || m_default_object_color == DEFULLT_OBJECT_COLOR)
pc.SaveProfileString(lpszSection, DefaultObjectColorKey, (const wchar_t*)NULL);
else
pc.SaveProfileColor(lpszSection, DefaultObjectColorKey, m_default_object_color);
}
#define DOC_COLOR_KEY L"CApp::ObjectColor{46F3AD57-D6B6-42A5-8B95-BB45227219B6}"
COLORREF CApp::ObjectColor(CRhinoDoc* doc)
{
// Check to see if the document contains a color override
ON_wString s;
if (doc ==nullptr || !doc->GetUserString(DOC_COLOR_KEY, s))
return DefaultObjectColor(); // No override found so use the default color
// Make sure the string is not an empty string
s.TrimLeftAndRight();
if (s.IsEmpty())
return DefaultObjectColor();
// Convert the string to a COLORREF
COLORREF color = _wtol(s);
return color;
}
void CApp::SetObjectColor(CRhinoDoc* doc, COLORREF color)
{
// Delete the document user string if setting to the default color
if (doc && (color == DefaultObjectColor() || color == ON_Color::UnsetColor))
doc->SetUserString(DOC_COLOR_KEY, nullptr);
else if (doc)
{
// Convert the COLORREF to a string and write the string
// to the document
wchar_t s[10];
memset(s, 0, sizeof(s));
swprintf(s, _countof(s), L"%d", color);
doc->SetUserString(DOC_COLOR_KEY, s);
}
}
COLORREF CApp::DefaultObjectColor()
{
return m_default_object_color == ON_Color::UnsetColor ? DEFULLT_OBJECT_COLOR : m_default_object_color;
}
void CApp::SetDefaultObjectColor(COLORREF color)
{
if (color == DEFULLT_OBJECT_COLOR)
m_default_object_color = ON_Color::UnsetColor;
else
m_default_object_color = color;
}
|
fd225b6a3089bf4ba68075a66325695561667393 | 0ecb5f6911965c08b8a4d4297a10584b2e720310 | /Common/pianorolleventsview.cpp | c4cea74ea97686c0217d33e2579ae47def3dac4d | [
"Apache-2.0"
] | permissive | danodus/studioengine | 01c368835f8f8503b9ced298ec5da927621be67c | 1a18d373b26575b040d014ae2650a1aaeb208a89 | refs/heads/main | 2023-05-26T11:13:11.355483 | 2021-05-27T15:17:06 | 2021-05-27T15:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 80,359 | cpp | pianorolleventsview.cpp | //
// pianorolleventsview.h
// MelobaseStation
//
// Created by Daniel Cliche on 2014-06-28.
// Copyright (c) 2014-2021 Daniel Cliche. All rights reserved.
//
#include "pianorolleventsview.h"
#include <drawcontext.h>
#include <draw.h>
#include <responderchain.h>
#include "helpers.h"
#include <platform.h>
#include <algorithm>
#define PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH 6.0f
#define PIANO_ROLL_EVENTS_VIEW_MAX_NB_TICKS (480*4*20000)
// ---------------------------------------------------------------------------------------------------------------------
PianoRollEventsView::PianoRollEventsView(std::string name, void *owner, MDStudio::Studio *studio, int trackIndex, UInt8 trackChannel, double eventTickWidth, float eventHeight, bool isShowingControllerEvents, MDStudio::ScrollView *mainScrollView) : _studio(studio), _trackIndex(trackIndex), _trackChannel(trackChannel), _eventTickWidth(eventTickWidth), _eventHeight(eventHeight), _isShowingControllerEvents(isShowingControllerEvents), _mainScrollView(mainScrollView), View(name, owner)
{
_cursorTickPos = 0;
_selectionRect = MDStudio::makeZeroRect();
_lastSelectionPt = MDStudio::makeZeroPoint();
_isCaptured = false;
_hasFocus = false;
_mode = ArrowMode;
_controllerEventsMode = SustainControllerEventsMode;
_controlChange = 0;
_metaType = 0;
_isMovingEvents = false;
_isResizingEvents = false;
_isMouseInside = false;
_moveEventsRefTickPos = 0;
for (int channel = 0; channel < STUDIO_MAX_CHANNELS; ++channel) {
_visibleChannels[channel] = true;
for (int pitch = 0; pitch < 128; ++pitch) {
_highlightPitchStates[channel][pitch] = false;
}
}
_highlightChannel = 0;
_isMovingCursor = false;
_endOfTrackImage = std::make_shared<MDStudio::Image>("EndOfTrack@2x.png");
}
// ---------------------------------------------------------------------------------------------------------------------
PianoRollEventsView::~PianoRollEventsView()
{
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::updateEventRects(int trackIndex, bool areCombined, bool areChannelEventsSkipped)
{
if (!areCombined) {
for (int i = 0; i < STUDIO_MAX_CHANNELS; ++i)
_eventRects[i].clear();
}
if (!_sequenceInfosFn || !_nbEventsFn || !_eventAtIndexFn || (trackIndex < 0))
return;
unsigned int nbEvents = _nbEventsFn(this, trackIndex);
unsigned int currentTickCount = 0;
std::vector<unsigned int> totalNbTicks, eotTickCounts;
int timeDivision = 480;
bool areAbsTicks = true;
// Get sequence infos
_sequenceInfosFn(this, &timeDivision, &totalNbTicks, &eotTickCounts, &areAbsTicks);
if ((totalNbTicks.size() == 0) || (totalNbTicks[trackIndex] > PIANO_ROLL_EVENTS_VIEW_MAX_NB_TICKS) || (timeDivision == 0))
return;
const float margin = 10.0f;
float height = bounds().size.height - (2.0f * margin);
int noteOnEventRectIndices[STUDIO_MAX_CHANNELS][128];
UInt32 noteOnTickCounts[STUDIO_MAX_CHANNELS][128];
for (int channel = 0; channel < STUDIO_MAX_CHANNELS; ++channel)
for (int pitch = 0; pitch < 128; ++pitch)
noteOnEventRectIndices[channel][pitch] = -1;
// Draw the events
for (unsigned int i = 0; i < nbEvents; i++) {
std::shared_ptr<MelobaseCore::Event> event;
_eventAtIndexFn(this, trackIndex, i, &event);
auto channelEvent = std::dynamic_pointer_cast<MelobaseCore::ChannelEvent>(event);
if (areAbsTicks) {
currentTickCount = channelEvent->tickCount();
} else {
currentTickCount += channelEvent->tickCount();
}
if (areChannelEventsSkipped && (channelEvent->type() != CHANNEL_EVENT_TYPE_META_TIME_SIGNATURE) && (channelEvent->type() != CHANNEL_EVENT_TYPE_META_SET_TEMPO))
continue;
switch (channelEvent->type()) {
case CHANNEL_EVENT_TYPE_NOTE:
{
if (!_isShowingControllerEvents ) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, (channelEvent->param1() - 12) * _eventHeight, channelEvent->length() * _eventTickWidth, _eventHeight);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
noteOnEventRectIndices[rechannelize(channelEvent->channel())][channelEvent->param1()] = (int)(_eventRects[rechannelize(channelEvent->channel())].size() - 1);
noteOnTickCounts[rechannelize(channelEvent->channel())][channelEvent->param1()] = currentTickCount;
}
break;
}
case CHANNEL_EVENT_TYPE_NOTE_OFF:
{
if (!_isShowingControllerEvents ) {
int noteOnEventRectIndice = noteOnEventRectIndices[rechannelize(channelEvent->channel())][channelEvent->param1()];
if (noteOnEventRectIndice >= 0) {
auto noteOnEventRect = &_eventRects[rechannelize(channelEvent->channel())][noteOnEventRectIndice];
// Adjust the rect
UInt32 length = currentTickCount - noteOnTickCounts[rechannelize(channelEvent->channel())][channelEvent->param1()];
noteOnEventRect->rect.size.width = length * _eventTickWidth;
noteOnEventRectIndices[rechannelize(channelEvent->channel())][channelEvent->param1()] = -1;
}
}
break;
}
case CHANNEL_EVENT_TYPE_META_TIME_SIGNATURE:
{
if (_isShowingControllerEvents && ((_controllerEventsMode == EndOfTrackTimeSignatureControllerEventsMode) || (_controllerEventsMode == MetaControllerEventsMode && _metaType == 88))) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 40.0f, bounds().size.height);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_SUSTAIN:
{
if (_isShowingControllerEvents && (_controllerEventsMode == SustainControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_PROGRAM_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ProgramChangesControllerEventsMode)) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 20.0f, bounds().size.height);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_SYSTEM_EXCLUSIVE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == SysexControllerEventsMode)) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 20.0f, bounds().size.height);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_META_GENERIC:
{
if (_isShowingControllerEvents && (_controllerEventsMode == MetaControllerEventsMode)) {
if (channelEvent->param1() == _metaType) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 20.0f, bounds().size.height);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
}
break;
}
case CHANNEL_EVENT_TYPE_META_SET_TEMPO:
{
if (_isShowingControllerEvents && (_controllerEventsMode == TempoControllerEventsMode)) {
float bpm = 60000000.0f / (float)(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(bpm, 30.0f, 300.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_PITCH_BEND:
{
if (_isShowingControllerEvents && (_controllerEventsMode == PitchBendControllerEventsMode)) {
Float32 multiplier = channelEvent->param2() > 0 ? (Float32)channelEvent->param2() : 1.0f;
float value = multiplier * (((Float32)channelEvent->param1() - 0.5f) * 2.0f / 16383.0f - 1.0f);
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, -2.0f, 2.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_MODULATION:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ModulationControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_META_END_OF_TRACK:
{
if (_isShowingControllerEvents && ((_controllerEventsMode == EndOfTrackTimeSignatureControllerEventsMode) || (_controllerEventsMode == MetaControllerEventsMode && _metaType == 47))) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 20.0f, 0.0f, 20.0f, bounds().size.height);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_MIXER_LEVEL_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == MixerLevelControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, (channelEvent->param2() == 0) ? 128.0f : 100) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_MIXER_BALANCE_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == MixerBalanceControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, ((channelEvent->param2() == 0) ? normalize(value, 0.0f, 128.0f) : normalize(value, -100.0f, 100.0f)) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_CONTROL_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ControlChangeControllerEventsMode)) {
if (channelEvent->param1() == _controlChange) {
float value = static_cast<float>(channelEvent->param2());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
}
break;
}
case CHANNEL_EVENT_TYPE_KEY_AFTERTOUCH:
{
if (_isShowingControllerEvents && (_controllerEventsMode == KeyAftertouchControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param2());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
case CHANNEL_EVENT_TYPE_CHANNEL_AFTERTOUCH:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ChannelAftertouchControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
EventRect eventRect;
eventRect.rect = r;
eventRect.channelEvent = channelEvent;
_eventRects[rechannelize(channelEvent->channel())].push_back(eventRect);
}
break;
}
}
}
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::updateSelectedEvents(int trackIndex, bool areCombined, bool areChannelEventsSkipped)
{
if (!areCombined)
_selectedEvents.clear();
if (!_sequenceInfosFn || !_nbEventsFn || !_eventAtIndexFn || (trackIndex < 0))
return;
unsigned int nbEvents = _nbEventsFn(this, trackIndex);
unsigned int currentTickCount = 0;
int timeDivision = 480;
std::vector<unsigned int> totalNbTicks, eotTickCounts;
bool areAbsTicks = true;
// Get sequence infos
_sequenceInfosFn(this, &timeDivision, &totalNbTicks, &eotTickCounts, &areAbsTicks);
if ((totalNbTicks.size() == 0) || (totalNbTicks[trackIndex] > PIANO_ROLL_EVENTS_VIEW_MAX_NB_TICKS))
return;
const float margin = 10.0f;
float height = bounds().size.height - (2.0f * margin);
// Draw the events
for (unsigned int i = 0; i < nbEvents; i++) {
std::shared_ptr<MelobaseCore::Event> event;
_eventAtIndexFn(this, trackIndex, i, &event);
auto channelEvent = std::dynamic_pointer_cast<MelobaseCore::ChannelEvent>(event);
if (areAbsTicks) {
currentTickCount = channelEvent->tickCount();
} else {
currentTickCount += channelEvent->tickCount();
}
if (areChannelEventsSkipped && (channelEvent->type() != CHANNEL_EVENT_TYPE_META_TIME_SIGNATURE) && (channelEvent->type() != CHANNEL_EVENT_TYPE_META_SET_TEMPO))
continue;
switch (channelEvent->type()) {
case CHANNEL_EVENT_TYPE_NOTE:
{
if (!_isShowingControllerEvents) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, (channelEvent->param1() - 12) * _eventHeight, channelEvent->length() * _eventTickWidth, _eventHeight);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_META_TIME_SIGNATURE:
{
if (_isShowingControllerEvents && ((_controllerEventsMode == EndOfTrackTimeSignatureControllerEventsMode) || (_controllerEventsMode == MetaControllerEventsMode && _metaType == 88))) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 40.0f, bounds().size.height);
bool selected = isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_SUSTAIN:
{
if (_isShowingControllerEvents && (_controllerEventsMode == SustainControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_PROGRAM_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ProgramChangesControllerEventsMode)) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 20.0f, bounds().size.height);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_SYSTEM_EXCLUSIVE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == SysexControllerEventsMode)) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 20.0f, bounds().size.height);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_META_GENERIC:
{
if (_isShowingControllerEvents && (_controllerEventsMode == MetaControllerEventsMode)) {
if (channelEvent->param1() == _metaType) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth, 0.0f, 20.0f, bounds().size.height);
bool selected = isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
}
break;
}
case CHANNEL_EVENT_TYPE_META_SET_TEMPO:
{
if (_isShowingControllerEvents && (_controllerEventsMode == TempoControllerEventsMode)) {
float bpm = 60000000.0f / (float)(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(bpm, 30.0f, 300.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_PITCH_BEND:
{
if (_isShowingControllerEvents && (_controllerEventsMode == PitchBendControllerEventsMode)) {
Float32 multiplier = channelEvent->param2() > 0 ? (Float32)channelEvent->param2() : 1.0f;
float value = multiplier * (((Float32)channelEvent->param1() - 0.5f) * 2.0f / 16383.0f - 1.0f);
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, -2.0f, 2.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_MODULATION:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ModulationControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_META_END_OF_TRACK:
{
if (_isShowingControllerEvents && ((_controllerEventsMode == EndOfTrackTimeSignatureControllerEventsMode) || (_controllerEventsMode == MetaControllerEventsMode && _metaType == 47))) {
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 20.0f, 0.0f, 20.0f, bounds().size.height);
bool selected = isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_MIXER_LEVEL_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == MixerLevelControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, (channelEvent->param2() == 0) ? 128.0f : 100.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_MIXER_BALANCE_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == MixerBalanceControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, ((channelEvent->param2() == 0) ? normalize(value, 0.0f, 128.0f) : normalize(value, -100.0f, 100.0f)) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_CONTROL_CHANGE:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ControlChangeControllerEventsMode)) {
if (channelEvent->param1() == _controlChange) {
float value = static_cast<float>(channelEvent->param2());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
}
break;
}
case CHANNEL_EVENT_TYPE_KEY_AFTERTOUCH:
{
if (_isShowingControllerEvents && (_controllerEventsMode == KeyAftertouchControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param2());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
case CHANNEL_EVENT_TYPE_CHANNEL_AFTERTOUCH:
{
if (_isShowingControllerEvents && (_controllerEventsMode == ChannelAftertouchControllerEventsMode)) {
float value = static_cast<float>(channelEvent->param1());
MDStudio::Rect r = MDStudio::makeRect(currentTickCount * _eventTickWidth - 5.0f, normalize(value, 0.0f, 128.0f) * height - 5.0f + margin, 10.0f, 10.0f);
bool selected = _visibleChannels[rechannelize(channelEvent->channel())] && isRectInRect(r, _selectionRect);
if (selected) {
_selectedEvents.push_back(event);
}
}
break;
}
}
}
}
// ---------------------------------------------------------------------------------------------------------------------
bool PianoRollEventsView::handleEvent(const MDStudio::UIEvent *event)
{
auto eventType = event->type;
// Forward horizontal scroll events to main scroll view
if (_mainScrollView && (eventType == MDStudio::SCROLL_UIEVENT) && isPointInRect(event->pt, resolvedClippedRect()))
_mainScrollView->scroll(event->deltaX, 0.0f);
// Detecting entering and leaving the region
if (eventType == MDStudio::MOUSE_MOVED_UIEVENT) {
_isMouseInside = isPointInRect(event->pt, resolvedClippedRect());
}
if (_isMouseInside) {
if ((eventType == MDStudio::KEY_UIEVENT) && (event->key == KEY_CONTROL)) {
if (_setSelectionStateFn)
_setSelectionStateFn(this, true);
} else if (!_isCaptured && (eventType == MDStudio::KEY_UP_UIEVENT) && (event->key == KEY_CONTROL)) {
if (_setSelectionStateFn)
_setSelectionStateFn(this, false);
responderChain()->setCursorInRect(this, MDStudio::Platform::ArrowCursor, resolvedClippedRect());
}
}
if (eventType == MDStudio::RIGHT_MOUSE_DOWN_UIEVENT && isPointInRect(event->pt, resolvedClippedRect())) {
responderChain()->makeFirstResponder(this);
_hasFocus = true;
if (_didSetFocusStateFn)
_didSetFocusStateFn(this, _hasFocus);
if (_setSelectionStateFn)
_setSelectionStateFn(this, true);
eventType = MDStudio::MOUSE_DOWN_UIEVENT;
responderChain()->setCursorInRect(this, MDStudio::Platform::CrosshairCursor, resolvedClippedRect());
}
// Handle the cursor when selecting
if (_isMouseInside) {
if (_mode == SelectionMode) {
responderChain()->setCursorInRect(this, MDStudio::Platform::CrosshairCursor, resolvedClippedRect());
} else if (_mode == DrawingMode) {
responderChain()->setCursorInRect(this, MDStudio::Platform::PencilCursor, resolvedClippedRect());
}
}
// Handle the cursor when in arrow, move or resize mode
if (!_isMovingEvents && (_mode == ArrowMode || _mode == MoveMode || _mode == ResizeMode) && (eventType == MDStudio::MOUSE_MOVED_UIEVENT) && isPointInRect(event->pt, resolvedClippedRect())) {
MDStudio::Point off = resolvedOffset();
MDStudio::Point pt = MDStudio::makePoint(event->pt.x - clippedRect().origin.x - off.x, event->pt.y - clippedRect().origin.y - off.y);
bool isCursorSet = false;
for (int channel = STUDIO_MAX_CHANNELS - 1; channel >= 0; --channel) {
for (auto eventRect : _eventRects[channel]) {
if (isPointInRect(pt, eventRect.rect)) {
if (((_mode == MoveMode || _mode == ResizeMode) && _selectedEvents.empty()) || std::find(_selectedEvents.begin(), _selectedEvents.end(), eventRect.channelEvent) != _selectedEvents.end()) {
if ((_mode == ArrowMode || _mode == ResizeMode) && (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_NOTE) && ((_mode == ResizeMode) || ((eventRect.rect.size.width > 2 * PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH) && (pt.x > eventRect.rect.origin.x + eventRect.rect.size.width - PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH)))) {
responderChain()->setCursorInRect(this, MDStudio::Platform::ResizeLeftRightCursor, resolvedClippedRect());
isCursorSet = true;
} else {
if (_mode != ResizeMode) {
responderChain()->setCursorInRect(this, MDStudio::Platform::OpenHandCursor, resolvedClippedRect());
isCursorSet = true;
}
}
}
}
}
} // for each channel
if (!isCursorSet)
responderChain()->setCursorInRect(this, (_mode == SelectionMode || _mode == DrawingMode) ? MDStudio::Platform::CrosshairCursor : MDStudio::Platform::ArrowCursor, resolvedClippedRect());
}
if (_hasFocus && eventType == MDStudio::KEY_UIEVENT) {
switch (event->key) {
case KEY_LEFT:
if (_previousMeasureFn) {
_previousMeasureFn(this);
return true;
}
case KEY_RIGHT:
if (_nextMeasureFn) {
_nextMeasureFn(this);
return true;
}
case KEY_DELETE:
case KEY_BACKSPACE:
if (_deleteEventsFn) {
_deleteEventsFn(this);
return true;
}
}
} else if ((eventType == MDStudio::MOUSE_DOWN_UIEVENT || eventType == MDStudio::MOUSE_MOVED_UIEVENT) && (_isCaptured || (isPointInRect(event->pt, resolvedClippedRect()) && eventType == MDStudio::MOUSE_DOWN_UIEVENT))) {
MDStudio::Point off = resolvedOffset();
MDStudio::Point pt = MDStudio::makePoint(event->pt.x - clippedRect().origin.x - off.x, event->pt.y - clippedRect().origin.y - off.y);
float p = (event->pt.x - clippedRect().origin.x - off.x) / _eventTickWidth;
int pitch = pt.y / _eventHeight;
if (p < 0.0f)
p = 0.0f;
if (!_isCaptured && (eventType == MDStudio::MOUSE_DOWN_UIEVENT)) {
responderChain()->makeFirstResponder(this);
responderChain()->captureResponder(this);
_hasFocus = true;
_isCaptured = true;
if (_didSetFocusStateFn)
_didSetFocusStateFn(this, _hasFocus);
if (_mode == DrawingMode) {
if (!_isShowingControllerEvents) {
_moveEventsRefPos = pt;
_moveEventsRefTickPos = p;
_moveEventsRefPitch = pitch;
if (_addNoteEventFn)
_addNoteEventFn(this, static_cast<unsigned int>(p), pitch + 12);
} else {
// Controller events are shown in this piano roll
const float margin = 10.0f;
float height = bounds().size.height - (2.0f * margin);
float v = pt.y - margin;
if (v < 0.0f) {
v = 0.0f;
} else if (v > height) {
v = height;
}
float normalizedValue = normalize(v, 0.0f, height);
switch (_controllerEventsMode) {
case SustainControllerEventsMode:
if (_addSustainEventFn)
_addSustainEventFn(this, static_cast<unsigned int>(p), normalizedValue * 127);
break;
case ProgramChangesControllerEventsMode:
if (_addProgramChangeEventFn)
_addProgramChangeEventFn(this, static_cast<unsigned int>(p));
break;
case SysexControllerEventsMode:
if (_addSysexEventFn)
_addSysexEventFn(this, static_cast<unsigned int>(p));
break;
case MetaControllerEventsMode:
// If TS event
if (_metaType == 88) {
if (_addTimeSignatureEventFn)
_addTimeSignatureEventFn(this, static_cast<unsigned int>(p));
} else if (_addMetaEventFn) {
// Do not allow adding EOT meta event
if (_metaType != 47) {
_addMetaEventFn(this, static_cast<unsigned int>(p), _metaType);
} else {
MDStudio::Platform::sharedInstance()->beep();
}
}
break;
case TempoControllerEventsMode:
if (_addTempoEventFn)
_addTempoEventFn(this, static_cast<unsigned int>(p), 30.0f + normalizedValue * 270);
break;
case PitchBendControllerEventsMode:
if (_addPitchBendEventFn)
_addPitchBendEventFn(this, static_cast<unsigned int>(p), normalizedValue * 16384 - 8192);
break;
case ModulationControllerEventsMode:
if (_addModulationEventFn)
_addModulationEventFn(this, static_cast<unsigned int>(p), normalizedValue * 127);
break;
case MixerLevelControllerEventsMode:
if (_addMixerLevelEventFn)
_addMixerLevelEventFn(this, static_cast<unsigned int>(p), normalizedValue * 127);
break;
case MixerBalanceControllerEventsMode:
if (_addMixerBalanceEventFn)
_addMixerBalanceEventFn(this, static_cast<unsigned int>(p), normalizedValue * 127);
break;
case EndOfTrackTimeSignatureControllerEventsMode:
if (_addTimeSignatureEventFn)
_addTimeSignatureEventFn(this, static_cast<unsigned int>(p));
break;
case ControlChangeControllerEventsMode:
if (_addControlChangeEventFn)
_addControlChangeEventFn(this, static_cast<unsigned int>(p), _controlChange, normalizedValue * 127);
break;
case KeyAftertouchControllerEventsMode:
if (_addKeyAftertouchEventFn)
_addKeyAftertouchEventFn(this, static_cast<unsigned int>(p), 0, normalizedValue * 127);
break;
case ChannelAftertouchControllerEventsMode:
if (_addChannelAftertouchEventFn)
_addChannelAftertouchEventFn(this, static_cast<unsigned int>(p), normalizedValue * 127);
break;
default:
break;
} // switch
} // controller events are shown in this piano roll
} else if (_mode == SelectionMode) {
_selectionRect.origin = pt;
if (_willSetSelectionRegionFn)
_willSetSelectionRegionFn(this);
} else if (!_isMovingEvents) {
// Check if we clicked inside a selected event
for (int channel = STUDIO_MAX_CHANNELS - 1; channel >= 0; --channel)
for (auto eventRect : _eventRects[channel]) {
if (isPointInRect(pt, eventRect.rect)) {
if (((_mode == MoveMode || _mode == ResizeMode) && _selectedEvents.empty()) || std::find(_selectedEvents.begin(), _selectedEvents.end(), eventRect.channelEvent) != _selectedEvents.end()) {
if ((_mode != MoveMode) && ((_mode == ResizeMode) || ((eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_NOTE) && eventRect.rect.size.width > 2 * PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH))) {
_isResizingEvents = (_mode == ResizeMode) || (pt.x > eventRect.rect.origin.x + eventRect.rect.size.width - PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH);
} else {
_isResizingEvents = false;
}
_moveEventsRefPos = pt;
_moveEventsRefTickPos = p;
_moveEventsRefPitch = pitch;
if (!_isMovingEvents) {
_isMovingEvents = true;
_activeEvent = eventRect.channelEvent;
if (_willMoveEventsFn)
_willMoveEventsFn(this);
}
break;
}
}
}
}
}
if (_mode == SelectionMode) {
_selectionRect.size = MDStudio::makeSize(pt.x - _selectionRect.origin.x, pt.y - _selectionRect.origin.y);
_lastSelectionPt = pt;
setDirty();
if (_didSetSelectionRegionFn)
_didSetSelectionRegionFn(this);
} else if (_isMovingEvents) {
_lastSelectionPt = pt;
if (_moveEventsFn) {
const float margin = 10.0f;
float height = bounds().size.height - (2.0f * margin);
int deltaTicks = p - _moveEventsRefTickPos;
int deltaPitch = !_isShowingControllerEvents ? pitch - _moveEventsRefPitch : 0;
if ((deltaTicks != 0) || (deltaPitch != 0)) {
float relY = pt.y - _moveEventsRefPos.y;
float normalizedDeltaValue = normalize(relY, 0.0f, height);
int deltaValue = 0;
if (_isShowingControllerEvents) {
switch (_controllerEventsMode) {
case SustainControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
case TempoControllerEventsMode:
deltaValue = normalizedDeltaValue * 300;
break;
case PitchBendControllerEventsMode:
deltaValue = normalizedDeltaValue * 16384;
break;
case ModulationControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
case MixerLevelControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
case MixerBalanceControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
case ControlChangeControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
case KeyAftertouchControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
case ChannelAftertouchControllerEventsMode:
deltaValue = normalizedDeltaValue * 127;
break;
default:
break;
}
}
_moveEventsFn(this, deltaTicks, deltaPitch, deltaValue, _isResizingEvents, _mode == DrawingMode);
}
}
} else if (_mode != DrawingMode) {
_isMovingCursor = true;
setCursorTickPos(p);
}
return true;
} else if (_isCaptured && ((eventType == MDStudio::MOUSE_UP_UIEVENT) || (eventType == MDStudio::RIGHT_MOUSE_UP_UIEVENT))) {
responderChain()->releaseResponder(this);
_isCaptured = false;
if (_mode == SelectionMode) {
bool areCombined = event->modifierFlags & MODIFIER_FLAG_SHIFT;
updateSelectedEvents(_trackIndex, areCombined, false);
if (_trackIndex > 0)
updateSelectedEvents(0, true, true);
if (_didSelectEventsFn)
_didSelectEventsFn(this, areCombined, false);
}
if (_isMovingEvents) {
_activeEvent = nullptr;
_isMovingEvents = false;
if (_didMoveEventsFn)
_didMoveEventsFn(this);
}
if (eventType == MDStudio::RIGHT_MOUSE_UP_UIEVENT) {
if (_setSelectionStateFn)
_setSelectionStateFn(this, false);
responderChain()->setCursorInRect(this, MDStudio::Platform::ArrowCursor, resolvedClippedRect());
}
if (_isMovingCursor) {
_isMovingCursor = false;
if (_didFinishSettingCursorTickPosFn)
_didFinishSettingCursorTickPosFn(this);
}
return true;
}
return false;
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::resignFirstResponder()
{
if (_hasFocus) {
if (_isCaptured) {
responderChain()->releaseResponder(this);
_isCaptured = false;
}
_hasFocus = false;
if (_didSetFocusStateFn)
_didSetFocusStateFn(this, _hasFocus);
}
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::drawFilledRoundRectTopRight(MDStudio::Rect rect, float radius, MDStudio::Color fillColor)
{
MDStudio::DrawContext *dc = drawContext();
float lineWidth = 1.0f / 2.0f;
dc->pushStates();
dc->setFillColor(fillColor);
// Top-right
dc->drawArc(MDStudio::makePoint(rect.origin.x + rect.size.width - radius, rect.origin.y + rect.size.height - radius), radius - lineWidth, 0.0f , M_PI / 2.0f);
// Right
dc->drawRect(MDStudio::makeRect(rect.origin.x + rect.size.width - radius, rect.origin.y, radius, rect.size.height - radius));
// Center
dc->drawRect(MDStudio::makeRect(rect.origin.x, rect.origin.y, rect.size.width - radius, rect.size.height));
dc->popStates();
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
// Top-right
dc->drawArc(MDStudio::makePoint(rect.origin.x + rect.size.width - radius, rect.origin.y + rect.size.height - radius), radius - lineWidth, 0.0f , M_PI / 2.0f);
// Left
dc->drawLine(MDStudio::makePoint(rect.origin.x + lineWidth, rect.origin.y), MDStudio::makePoint(rect.origin.x + lineWidth, rect.origin.y + rect.size.height));
// Top
dc->drawLine(MDStudio::makePoint(rect.origin.x, rect.origin.y + rect.size.height - lineWidth), MDStudio::makePoint(rect.origin.x + rect.size.width - radius, rect.origin.y + rect.size.height - lineWidth));
// Right
dc->drawLine(MDStudio::makePoint(rect.origin.x + rect.size.width - lineWidth, rect.origin.y), MDStudio::makePoint(rect.origin.x + rect.size.width - lineWidth, rect.origin.y + rect.size.height - radius));
// Bottom
dc->drawLine(MDStudio::makePoint(rect.origin.x, rect.origin.y + lineWidth), MDStudio::makePoint(rect.origin.x + rect.size.width, rect.origin.y + lineWidth));
dc->popStates();
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::drawFilledRoundRectTopLeft(MDStudio::Rect rect, float radius, MDStudio::Color fillColor)
{
MDStudio::DrawContext *dc = drawContext();
float lineWidth = 1.0f / 2.0f;
dc->pushStates();
dc->setFillColor(fillColor);
// Top-left
dc->drawArc(MDStudio::makePoint(rect.origin.x + radius, rect.origin.y + rect.size.height - radius), radius - lineWidth, M_PI / 2.0f , M_PI / 2.0f);
// Left
dc->drawRect(MDStudio::makeRect(rect.origin.x, rect.origin.y, radius, rect.size.height - radius));
// Center
dc->drawRect(MDStudio::makeRect(rect.origin.x + radius, rect.origin.y, rect.size.width - radius, rect.size.height));
dc->popStates();
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
// Top-left
dc->drawArc(MDStudio::makePoint(rect.origin.x + radius, rect.origin.y + rect.size.height - radius), radius - lineWidth, M_PI / 2.0f , M_PI / 2.0f);
// Left
dc->drawLine(MDStudio::makePoint(rect.origin.x + lineWidth, rect.origin.y), MDStudio::makePoint(rect.origin.x + lineWidth, rect.origin.y + rect.size.height - radius));
// Top
dc->drawLine(MDStudio::makePoint(rect.origin.x + radius, rect.origin.y + rect.size.height - lineWidth), MDStudio::makePoint(rect.origin.x + rect.size.width, rect.origin.y + rect.size.height - lineWidth));
// Right
dc->drawLine(MDStudio::makePoint(rect.origin.x + rect.size.width - lineWidth, rect.origin.y), MDStudio::makePoint(rect.origin.x + rect.size.width - lineWidth, rect.origin.y + rect.size.height));
// Bottom
dc->drawLine(MDStudio::makePoint(rect.origin.x, rect.origin.y + lineWidth), MDStudio::makePoint(rect.origin.x + rect.size.width, rect.origin.y + lineWidth));
dc->popStates();
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::getMeasureTicks(int timeDivision, unsigned int totalNbTicks, bool areAbsTicks, std::vector<unsigned int> *measureTicks, std::vector<int> *numerators)
{
unsigned int tick = 0L, refTick = 0L;
int numerator = 0;
unsigned int nbEvents = _nbEventsFn(this, 0);
for (unsigned int i = 0; i < nbEvents; ++i) {
std::shared_ptr<MelobaseCore::Event> event;
_eventAtIndexFn(this, 0, i, &event);
auto channelEvent = std::dynamic_pointer_cast<MelobaseCore::ChannelEvent>(event);
if (areAbsTicks) {
tick = channelEvent->tickCount();
} else {
tick += channelEvent->tickCount();
}
if (channelEvent->type() == CHANNEL_EVENT_TYPE_META_TIME_SIGNATURE) {
if (numerator) {
for (unsigned int t = refTick; t < tick; t += timeDivision * numerator) {
measureTicks->push_back(t);
numerators->push_back(numerator);
}
}
numerator = channelEvent->param1();
refTick = tick;
}
}
if (numerator) {
for (unsigned int t = refTick; t < totalNbTicks; t += timeDivision * numerator) {
measureTicks->push_back(t);
numerators->push_back(numerator);
}
}
}
// ---------------------------------------------------------------------------------------------------------------------
MDStudio::Rect PianoRollEventsView::makeBoundingBox(const std::vector<MDStudio::Point> &points) const
{
float minX = std::numeric_limits<float>::max();
float minY = std::numeric_limits<float>::max();
float maxX = std::numeric_limits<float>::min();
float maxY = std::numeric_limits<float>::max();
for (auto &pt : points) {
minX = std::min(minX, pt.x);
minY = std::min(minY, pt.y);
maxX = std::max(maxX, pt.x);
maxY = std::max(maxY, pt.y);
}
return MDStudio::makeRect(minX, minY, maxX - minX, maxY - minY);
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::drawAnnotations() {
MDStudio::DrawContext* dc = drawContext();
dc->pushStates();
dc->setFillColor(MDStudio::redColor);
auto nbAnnotations = _nbAnnotationsFn(this);
for (unsigned int annotationIndex = 0; annotationIndex < nbAnnotations; annotationIndex++) {
std::shared_ptr<MelobaseCore::SequenceAnnotation> annotation;
_annotationAtIndexFn(this, annotationIndex, &annotation);
dc->drawRect(MDStudio::makeRect(annotation->tickCount * _eventTickWidth, 0.0f, 1.0f, frame().size.height));
}
dc->popStates();
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::draw()
{
if (!_sequenceInfosFn || !_nbEventsFn || !_eventAtIndexFn || (_trackIndex < 0))
return;
MDStudio::DrawContext *dc = drawContext();
int timeDivision = 480;
std::vector<unsigned int> totalNbTicks, eotTickCounts;
bool areAbsTicks = true;
// Get sequence infos
_sequenceInfosFn(this, &timeDivision, &totalNbTicks, &eotTickCounts, &areAbsTicks);
if ((totalNbTicks.size() == 0) || (timeDivision == 0))
return;
MDStudio::Rect fullRect = MDStudio::makeRect(0.0f, 0.0f, (float)(totalNbTicks[_trackIndex]) * _eventTickWidth, bounds().size.height);
if (totalNbTicks[_trackIndex] <= PIANO_ROLL_EVENTS_VIEW_MAX_NB_TICKS) {
std::vector<unsigned int>measureTicks;
std::vector<int>numerators;
getMeasureTicks(timeDivision, totalNbTicks[_trackIndex], areAbsTicks, &measureTicks, &numerators);
dc->pushStates();
dc->setFillColor(_isShowingControllerEvents ? MDStudio::makeColor(0.1f, 0.1f, 0.1f, 1.0f) : MDStudio::makeColor(0.2f, 0.2f, 0.2f, 1.0f));
dc->drawRect(MDStudio::makeRect(0, 0, totalNbTicks[_trackIndex] * _eventTickWidth, bounds().size.height));
dc->popStates();
// Draw the measures
unsigned long nbMeasures = measureTicks.size();
for (unsigned int measure = 0; measure < nbMeasures; measure++) {
unsigned int nbTicksInMeasure = (measure == (nbMeasures - 1) ? totalNbTicks[_trackIndex] : measureTicks[measure + 1]) - measureTicks[measure];
MDStudio::Rect r = MDStudio::makeRect((float)(measureTicks[measure]) * _eventTickWidth, 2, nbTicksInMeasure * _eventTickWidth, bounds().size.height);
if (!isRectInRect(MDStudio::makeRect(r.origin.x + offset().x, r.origin.y + offset().y, r.size.width, r.size.height), clippedBounds()))
continue;
dc->pushStates();
dc->setFillColor(_isShowingControllerEvents ? MDStudio::makeColor(0.1f, 0.1f, 0.1f, 1.0f) : MDStudio::veryDimGrayColor);
dc->drawRect(r);
dc->popStates();
if (measure) {
dc->pushStates();
dc->setFillColor( _isShowingControllerEvents ? MDStudio::veryDimGrayColor : MDStudio::grayColor);
dc->drawRect(MDStudio::makeRect(r.origin.x, 2, 2, bounds().size.height));
dc->popStates();
}
int numerator = numerators[measure];
MDStudio::Color veryDarkGray = MDStudio::makeColor(0.15f, 0.15f, 0.15f, 1.0f);
if (_eventTickWidth > 0.2) {
// 1/32
for (int num = (measure > 0) ? 0 : 1; num < numerator * 8; num++) {
MDStudio::Rect r2 = MDStudio::makeRect((float)(num * timeDivision / 8) * _eventTickWidth + r.origin.x, 2, 1, bounds().size.height);
if (r2.origin.x + r2.size.width < fullRect.size.width) {
dc->pushStates();
dc->setFillColor((num % 4 == 0) ? MDStudio::blackColor : veryDarkGray);
dc->drawRect(r2);
dc->popStates();
}
}
} else if (_eventTickWidth > 0.07) {
// 1/16
for (int num = (measure > 0) ? 0 : 1; num < numerator * 4; num++) {
MDStudio::Rect r2 = MDStudio::makeRect((float)(num * timeDivision / 4) * _eventTickWidth + r.origin.x, 2, 1, bounds().size.height);
if (r2.origin.x + r2.size.width < fullRect.size.width) {
dc->pushStates();
dc->setFillColor(veryDarkGray);
dc->drawRect(r2);
dc->popStates();
}
}
} else if (_eventTickWidth > 0.04) {
// 1/8
for (int num = (measure > 0) ? 0 : 1; num < numerator * 2; num++) {
MDStudio::Rect r2 = MDStudio::makeRect((float)(num * timeDivision / 2) * _eventTickWidth + r.origin.x, 2, 1, bounds().size.height);
if (r2.origin.x + r2.size.width < fullRect.size.width) {
dc->pushStates();
dc->setFillColor(veryDarkGray);
dc->drawRect(r2);
dc->popStates();
}
}
}
// 1/4
for (int num = (measure > 0) ? 0 : 1; num < numerator; num++) {
MDStudio::Rect r2 = MDStudio::makeRect((float)(num * timeDivision) * _eventTickWidth + r.origin.x, 2, 1, bounds().size.height);
if (r2.origin.x + r2.size.width < fullRect.size.width) {
dc->pushStates();
dc->setFillColor(_isShowingControllerEvents ? MDStudio::veryDimGrayColor : MDStudio::grayColor);
dc->drawRect(r2);
dc->popStates();
}
}
} // for each measure
// Draw the events
updateEventRects(_trackIndex, false, false);
if (_trackIndex > 0)
updateEventRects(0, true, true);
EventRect lastControllerEventRect[STUDIO_MAX_CHANNELS];
memset(&lastControllerEventRect, 0, sizeof(lastControllerEventRect));
// Draw median line
if (_isShowingControllerEvents && (_controllerEventsMode == SustainControllerEventsMode || _controllerEventsMode == PitchBendControllerEventsMode || _controllerEventsMode == ModulationControllerEventsMode || _controllerEventsMode == MixerBalanceControllerEventsMode)) {
dc->pushStates();
dc->setStrokeColor(MDStudio::veryDimGrayColor);
dc->drawLine(MDStudio::makePoint(0.0f, rect().size.height / 2.0f), MDStudio::makePoint(fullRect.size.width , rect().size.height / 2.0f));
dc->popStates();
}
for (int channel = STUDIO_MAX_CHANNELS - 1; channel >= 0; --channel) {
// Draw controller lines
MDStudio::Color channelColor = channelColors[channel];
channelColor.red *= 0.75f;
channelColor.green *= 0.75f;
channelColor.blue *= 0.75f;
for (auto eventRect : _eventRects[channel]) {
bool isMetaEvent = getIsMetaEvent(eventRect.channelEvent);
if (isMetaEvent || _visibleChannels[rechannelize(eventRect.channelEvent->channel())]) {
MDStudio::Color eventColor = isMetaEvent ? MDStudio::grayColor : channelColor;
if ((eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_SUSTAIN) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_META_SET_TEMPO) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_PITCH_BEND) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_MODULATION) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_MIXER_LEVEL_CHANGE) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_MIXER_BALANCE_CHANGE) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_CONTROL_CHANGE) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_KEY_AFTERTOUCH) || (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_CHANNEL_AFTERTOUCH)) {
if (lastControllerEventRect[rechannelize(eventRect.channelEvent->channel())].channelEvent) {
auto pt0 = midRect(lastControllerEventRect[rechannelize(eventRect.channelEvent->channel())].rect);
auto pt1 = MDStudio::makePoint(midRectX(eventRect.rect), midRectY(lastControllerEventRect[rechannelize(eventRect.channelEvent->channel())].rect));
auto pt2 = midRect(eventRect.rect);
auto boundingBox = makeBoundingBox({pt0, pt1, pt2});
if (isRectInRect(MDStudio::makeRect(boundingBox.origin.x + offset().x, boundingBox.origin.y + offset().y, boundingBox.size.width, boundingBox.size.height), clippedBounds())) {
dc->pushStates();
dc->setStrokeColor(eventColor);
dc->setStrokeWidth(2.0f);
dc->drawLine(pt0, pt1);
dc->drawLine(pt1, pt2);
dc->popStates();
}
}
lastControllerEventRect[rechannelize(eventRect.channelEvent->channel())] = eventRect;
}
}
}
// Draw the completion line
if (lastControllerEventRect[channel].channelEvent) {
auto eventRect = lastControllerEventRect[channel];
bool isMetaEvent = getIsMetaEvent(eventRect.channelEvent);
MDStudio::Color eventColor = isMetaEvent ? MDStudio::grayColor : channelColor;
auto startPoint = midRect(lastControllerEventRect[channel].rect);
if (fullRect.size.width > startPoint.x) {
auto endPoint = MDStudio::makePoint(fullRect.size.width, midRect(lastControllerEventRect[channel].rect).y);
auto boundingBox = makeBoundingBox({startPoint, endPoint});
if (isRectInRect(MDStudio::makeRect(boundingBox.origin.x + offset().x, boundingBox.origin.y + offset().y, boundingBox.size.width, boundingBox.size.height), clippedBounds())) {
dc->pushStates();
dc->setStrokeColor(eventColor);
dc->setStrokeWidth(2.0f);
dc->drawLine(startPoint, endPoint);
dc->popStates();
}
}
}
// Draw events
for (auto eventRect : _eventRects[channel]) {
bool isMetaEvent = getIsMetaEvent(eventRect.channelEvent);
if (isMetaEvent || _visibleChannels[rechannelize(eventRect.channelEvent->channel())]) {
if (isRectInRect(MDStudio::makeRect(eventRect.rect.origin.x + offset().x, eventRect.rect.origin.y + offset().y, eventRect.rect.size.width, eventRect.rect.size.height), clippedBounds())) {
MDStudio::Color color = isMetaEvent ? MDStudio::grayColor : channelColor;
bool selected = std::find(_selectedEvents.begin(), _selectedEvents.end(), eventRect.channelEvent) != _selectedEvents.end();
if (selected)
color = isMetaEvent ? MDStudio::lightGrayColor : channelColors[channel];
if (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_NOTE) {
dc->pushStates();
dc->setFillColor(color);
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawRect(eventRect.rect);
dc->popStates();
// If selected, draw the resize handle
if ((_mode == ArrowMode) && selected && (eventRect.rect.size.width > 2.0f * PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH)) {
MDStudio::Rect r = MDStudio::makeRect(eventRect.rect.origin.x + eventRect.rect.size.width - PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH, eventRect.rect.origin.y + 2.0f, PIANO_ROLL_EVENTS_VIEW_NB_RESIZE_HANDLE_WIDTH - 3.0f, eventRect.rect.size.height - 4.0f);
dc->pushStates();
dc->setFillColor(MDStudio::veryDimGrayColor);
dc->drawRect(r);
dc->popStates();
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawRect(eventRect.rect);
dc->popStates();
}
} else if (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_PROGRAM_CHANGE) {
drawFilledRoundRectTopRight(eventRect.rect, 10.0f, color);
const MDStudio::Preset *preset = (channel == 9) ? _studio->presetForInstrument(STUDIO_INSTRUMENT_GM_STANDARD_DRUM_KIT) : _studio->presetForInstrument(eventRect.channelEvent->param1());
std::string instrumentName;
if (preset != nullptr)
instrumentName = preset->_name;
float textHeight = fontHeight(MDStudio::SystemFonts::sharedInstance()->semiboldFont());
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawText(MDStudio::SystemFonts::sharedInstance()->semiboldFont(), MDStudio::makePoint(eventRect.rect.origin.x + 22.0f - textHeight / 2.0f, 5.0f), instrumentName, 90.0f);
dc->popStates();
} else if (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_SYSTEM_EXCLUSIVE) {
drawFilledRoundRectTopRight(eventRect.rect, 10.0f, color);
float textHeight = fontHeight(MDStudio::SystemFonts::sharedInstance()->semiboldFont());
std::string s;
size_t len = eventRect.channelEvent->data().size();
if (len > 1) {
for (size_t i = 0; i < len - 1; ++i) {
s += toStringHex(eventRect.channelEvent->data()[i]);
if (i < len - 2)
s += " ";
}
}
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawText(MDStudio::SystemFonts::sharedInstance()->semiboldFont(), MDStudio::makePoint(eventRect.rect.origin.x + 22.0f - textHeight / 2.0f, 5.0f), s, 90.0f);
dc->popStates();
} else if (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_META_GENERIC) {
drawFilledRoundRectTopRight(eventRect.rect, 10.0f, color);
float textHeight = fontHeight(MDStudio::SystemFonts::sharedInstance()->semiboldFont());
std::string s;
if (eventRect.channelEvent->param1() >= 1 && eventRect.channelEvent->param1() <= 7) {
for (auto c : eventRect.channelEvent->data())
s += c;
} else {
size_t len = eventRect.channelEvent->data().size();
for (size_t i = 0; i < len; ++i) {
s += toStringHex(eventRect.channelEvent->data()[i]);
if (i < len - 1)
s += " ";
}
}
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawText(MDStudio::SystemFonts::sharedInstance()->semiboldFont(), MDStudio::makePoint(eventRect.rect.origin.x + 22.0f - textHeight / 2.0f, 5.0f), s, 90.0f);
dc->popStates();
} else if (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_META_TIME_SIGNATURE) {
drawFilledRoundRectTopRight(eventRect.rect, 5.0f, color);
dc->pushStates();
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawCenteredText(MDStudio::SystemFonts::sharedInstance()->semiboldFont(), eventRect.rect, std::to_string(eventRect.channelEvent->param1()) + "/" + std::to_string(eventRect.channelEvent->param2()));
dc->popStates();
} else if (eventRect.channelEvent->type() == CHANNEL_EVENT_TYPE_META_END_OF_TRACK) {
dc->pushStates();
dc->setFillColor(color);
drawFilledRoundRectTopLeft(eventRect.rect, 5.0f, color);
dc->drawImage(MDStudio::makeCenteredRectInRect(MDStudio::makeRect(eventRect.rect.origin.x + 5.0f, eventRect.rect.origin.y, eventRect.rect.size.width - 5.0f, eventRect.rect.size.height), _endOfTrackImage->size().width, _endOfTrackImage->size().height), _endOfTrackImage);
dc->popStates();
} else {
dc->pushStates();
dc->setFillColor(color);
dc->setStrokeColor(MDStudio::whiteColor);
dc->drawRect(eventRect.rect);
dc->popStates();
}
}
} // If the channel is visible or if meta event
}
}
} // if we are not beyound the limit number of ticks
drawAnnotations();
// Draw the end of track grayed-out region
if (!_isShowingControllerEvents) {
MDStudio::Color color = MDStudio::makeColor(0.0f, 0.0f, 0.0f, 0.5f);
float eotOrigin = eotTickCounts[_trackIndex] * _eventTickWidth;
MDStudio::Rect r = MDStudio::makeRect(eotOrigin, 0.0f, rect().size.width - eotOrigin, rect().size.height);
dc->pushStates();
dc->setFillColor(color);
dc->drawRect(r);
dc->popStates();
}
// Draw highlighted pitches
for (int pitch = 0; pitch < 128; ++pitch) {
bool isHighlighted = false;
if (_highlightPitchStates[_highlightChannel][pitch]) {
isHighlighted = true;
}
if (isHighlighted) {
MDStudio::Color color = MDStudio::makeColor(1.0f, 1.0f, 1.0f, 0.3f);
MDStudio::Rect r = MDStudio::makeRect(-offset().x, static_cast<float>(pitch - 12) * _eventHeight, clippedRect().size.width, _eventHeight);
dc->pushStates();
dc->setFillColor(color);
dc->drawRect(r);
dc->popStates();
}
}
if (totalNbTicks[_trackIndex] > PIANO_ROLL_EVENTS_VIEW_MAX_NB_TICKS) {
dc->pushStates();
dc->setFillColor(_isShowingControllerEvents ? MDStudio::makeColor(0.1f, 0.1f, 0.1f, 1.0f) : MDStudio::veryDimGrayColor);
dc->drawRect(fullRect);
dc->popStates();
if (!_isShowingControllerEvents) {
dc->pushStates();
dc->setStrokeColor(MDStudio::lightGrayColor);
dc->drawCenteredText(MDStudio::SystemFonts::sharedInstance()->semiboldFont(), MDStudio::makeRect(-offset().x, -offset().y, clippedRect().size.width, clippedRect().size.height), MDStudio::Platform::sharedInstance()->language() == "fr" ? "La séquence est trop longe pour être affichée" : "The sequence is too long to be displayed.");
dc->popStates();
}
} else {
// Draw the visible selection rect
MDStudio::Color color = MDStudio::makeColor(0.5f, 0.5f, 0.5f, 0.25f);
dc->pushStates();
dc->setFillColor(color);
dc->drawRect(_selectionRect);
dc->popStates();
color = MDStudio::makeColor(0.75f, 0.75f, 0.75f, 0.25f);
dc->pushStates();
dc->setStrokeColor(color);
dc->drawRect(_selectionRect);
dc->popStates();
}
// We draw the cursor
MDStudio::Rect r = MDStudio::makeRect(_eventTickWidth * (float)_cursorTickPos, 0.0f, pianoRollCursorWidth, bounds().size.height);
dc->pushStates();
dc->setFillColor(MDStudio::makeColor(0.0f, 0.5f, 1.0f, 0.6f));
dc->drawRect(r);
dc->popStates();
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::setCursorTickPos(unsigned int cursorTickPos, bool isDelegateNotified)
{
if (_trackIndex < 0)
return;
int timeDivision = 480;
std::vector<unsigned int> totalNbTicks, eotTickCounts;
bool areAbsTicks = true;
// Get sequence infos
_sequenceInfosFn(this, &timeDivision, &totalNbTicks, &eotTickCounts, &areAbsTicks);
unsigned int totalNbTicksCombined = 0;
if (totalNbTicks.size() > 0)
totalNbTicksCombined = *std::max_element(totalNbTicks.begin(), totalNbTicks.end());
_cursorTickPos = cursorTickPos < totalNbTicksCombined ? cursorTickPos : totalNbTicksCombined;
setDirty();
if (isDelegateNotified && _didSetCursorTickPosFn)
_didSetCursorTickPosFn(this, _cursorTickPos);
}
// ---------------------------------------------------------------------------------------------------------------------
std::vector<std::shared_ptr<MelobaseCore::Event>> PianoRollEventsView::selectedEvents()
{
return _selectedEvents;
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::clearEventSelection(bool isDelegateNotified)
{
_selectionRect = MDStudio::makeZeroRect();
_selectedEvents.clear();
setDirty();
if (isDelegateNotified) {
if (_didSelectEventsFn)
_didSelectEventsFn(this, false, false);
}
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::resetSelectionRegion()
{
_selectionRect = MDStudio::makeZeroRect();
setDirty();
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::selectEvents(const std::vector<std::shared_ptr<MelobaseCore::Event>> &events, bool isDelegateNotified)
{
_selectionRect = MDStudio::makeZeroRect();
_selectedEvents = events;
setDirty();
if (isDelegateNotified && _didSelectEventsFn)
_didSelectEventsFn(this, false, false);
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::selectAllEvents(bool isDelegateNotified)
{
// Get the total nb of ticks
std::vector<unsigned int> totalNbTicks, eotTickCounts;
int timeDivision = 480;
bool areAbsTicks = true;
_sequenceInfosFn(this, &timeDivision, &totalNbTicks, &eotTickCounts, &areAbsTicks);
if (totalNbTicks.size() == 0)
return;
_selectionRect = MDStudio::makeRect(0.0f, 0.0f, totalNbTicks[_trackIndex] * _eventTickWidth, bounds().size.height);
updateSelectedEvents(_trackIndex, false, false);
if (_trackIndex > 0)
updateSelectedEvents(0, true, true);
if (isDelegateNotified && _didSelectEventsFn)
_didSelectEventsFn(this, false, false);
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::setVisibleChannels(std::array<bool, STUDIO_MAX_CHANNELS> visibleChannels)
{
_visibleChannels = visibleChannels;
// Update the list of selected events in order to remove the events not being visible
std::vector<std::shared_ptr<MelobaseCore::Event>> selectedEvents;
for (std::shared_ptr<MelobaseCore::Event> event : _selectedEvents) {
auto channelEvent = std::dynamic_pointer_cast<MelobaseCore::ChannelEvent>(event);
if (_visibleChannels[rechannelize(channelEvent->channel())] == true)
selectedEvents.push_back(event);
}
_selectedEvents = selectedEvents;
if (_didSelectEventsFn)
_didSelectEventsFn(this, false, false);
setDirty();
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::setHighlightPitchState(int channel, int pitch, bool state)
{
_highlightPitchStates[channel][pitch] = state;
setDirty();
}
// ---------------------------------------------------------------------------------------------------------------------
MDStudio::Rect PianoRollEventsView::selectedEventsFrame()
{
MDStudio::Rect selectedEventsFrame;
bool isFirstSelectedEvent = true;
for (int channel = 0; channel < STUDIO_MAX_CHANNELS; ++channel) {
for (auto eventRect : _eventRects[channel]) {
if (std::find(_selectedEvents.begin(), _selectedEvents.end(), eventRect.channelEvent) != _selectedEvents.end()) {
if (isFirstSelectedEvent) {
selectedEventsFrame = eventRect.rect;
isFirstSelectedEvent = false;
} else {
selectedEventsFrame = makeUnionRect(selectedEventsFrame, eventRect.rect);
}
}
}
}
return selectedEventsFrame;
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::setAddedEvent(std::shared_ptr<MelobaseCore::Event> addedEvent)
{
_activeEvent = addedEvent;
_isMovingEvents = true;
_isResizingEvents = true;
if (_didSelectEventsFn)
_didSelectEventsFn(this, false, true);
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::setTrackIndex(int trackIndex)
{
if (trackIndex != _trackIndex) {
clearEventSelection();
_trackIndex = trackIndex;
}
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::setTrackChannel(UInt8 trackChannel)
{
_trackChannel = trackChannel;
}
// ---------------------------------------------------------------------------------------------------------------------
void PianoRollEventsView::selectAll()
{
selectAllEvents();
}
|
a2f5ff6dbfd41e943a5d7ab2c68ecfbc7ad8cfc3 | 6518b69e83dabca6c150610f380e0aba764b9f1f | /src/utils.hpp | f9f2f15e8d637225ca1d78d945908fc3fc0af969 | [] | no_license | Stovent/Chip8Emu | 36faf740dcf4fb1a9db0486f09b7248a99c6b464 | 2b63c424f5d90c352fd822d95a2fb5a05a70b962 | refs/heads/master | 2021-08-08T00:38:48.193637 | 2021-06-23T13:45:20 | 2021-06-23T13:45:20 | 158,129,813 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 240 | hpp | utils.hpp | #ifndef UTILS_HPP
#define UTILS_HPP
#include <string>
inline std::string toHex(const uint32_t value, const char* format = NULL)
{
char c[10] = {0};
sprintf(c, format ? format : "%02X", value);
return c;
}
#endif // UTILS_HPP
|
440ea9373192f26e126d3fb2d1ecaae7251ae35a | a2e9639153e71dcf84d34b7349d69aa31b2eb678 | /zBTLC/zBTLC/game_sa/CTaskComplexGoToPointAiming.cpp | a33b4a941bd2d21067f5e6b73746ad59ef56ef3f | [] | no_license | DaDj/GTA-BTLC | ade014b3d8dbb1ecce6422328be95631226cd6f4 | 15d60cb5d5f14291317235066d64a639fffaf3ea | refs/heads/master | 2023-08-16T23:12:57.867204 | 2023-08-13T21:45:06 | 2023-08-13T21:45:06 | 83,485,003 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 40 | cpp | CTaskComplexGoToPointAiming.cpp | #include "CTaskComplexGoToPointAiming.h" |
c7f7f43185446a8e66d2fc686ff6ec329f851c25 | c32ca8180847b209e24e8d1d5ae87f88cda172cc | /hvn3/include/hvn3/events/Timer.h | f4da4ce7bb60ebc065a48cbe75a9bdf24c6c7747 | [] | no_license | gsemac/hvn3-engine | 051ffe6dd8fd07a95fdb3937013ad3bdc805dddc | 7f99f6a0cc67aae7e5e5ec5a4c08a2a688f0ee0a | refs/heads/master | 2021-07-24T12:04:42.773197 | 2019-03-06T21:50:52 | 2019-03-06T21:50:52 | 98,023,277 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | h | Timer.h | #pragma once
#include "hvn3/events/EventSource.h"
#include <cstdint>
struct ALLEGRO_TIMER;
namespace hvn3 {
class Timer {
public:
Timer(double seconds_per_tick);
~Timer();
void Start();
void Resume();
void Stop();
bool HasStarted() const;
int64_t Count() const;
void SetCount(int64_t count);
void AddCount(int64_t diff);
double SecondsPerTick() const;
void SetSecondsPerTick(double seconds_per_tick);
EventSource EventSource();
private:
ALLEGRO_TIMER* __timer;
};
} |
511850d40e3d94f6599bc46f8d742cc084138db5 | ee768cccbe851a39561df74695986ac8849f74da | /aLongJaunt/EnemyClass.h | 8baba341e26a1cecb3a7a4c88df4c5e509fdd04c | [] | no_license | Transpennine/aLongJaunt | 46b48f89ad1a6c5f9f02e31584963e4c6fc81919 | 7479ce583b6d95e25e77c7c58a4d1c43ec89e078 | refs/heads/master | 2020-04-10T03:03:28.869672 | 2018-12-20T11:32:39 | 2018-12-20T11:32:39 | 160,759,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,635 | h | EnemyClass.h | #pragma once
#include <map>
#include "BasicClass.h"
class EnemyClass : public BasicClass {
private:
enum checkStats {Charm, Strength, Magic, Speed};
map <checkStats, string> statMap = { {Charm, "Charm"},
{Strength, "Strength"},
{Magic, "Magic"},
{Speed, "Speed"} };
map <checkStats, string>::iterator mapIT;
bool alive;
int check; //holds an int that determines which stat needs checked
bool charmCheck; //true if charm needs checked to bypass this enemy
bool strengthCheck; //true if strength needs checked to bypass this enemy
bool magicCheck; //true if magic needs checked to bypass this enemy
bool speedCheck; //true if speed needs checked t bypass this enemy
int damage; //holds the amount of damage the enemy deals every turn
string checkMessage;//holds the message that tells the character what stat is needed to pass the enemy
string checkFailMessage; //holds the message that tells the character that the check was not successfull
string passMessage; //message that appears if the character has enough to bypass the enemy
public:
//accessor functions prototypes
void checkHealth(); //checks health and changes "alive" if at or below 0
//mutator functions prototypes
void setDamage(int newDamage); //sets the damage of the enemy
int attack(); //outputs the attach value
void setMessages(); //sets the messages for the enemy
EnemyClass(string& newName, int& newCharm, int& newStrength, int& newMagic, int& newSpeed, const int check, int newDamage); //constructor will set basic members and stat checks
void setStatCheck(int); //changes the required stat to be checked
~EnemyClass() = default;
};
|
f46708128264d34e296431b399bab7e828871ddf | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /DP/1195.cpp | 2aeacc035ba16836727b7fd452e3b7cec0873e7a | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 848 | cpp | 1195.cpp | #include<bits/stdc++.h>
using namespace std;
int n;
int arr[101];
int dp[101][101];
int solve(int i, int j, int counter)
{
if(i == n || j == n)
return 0;
if(dp[i][j] != -1)
return dp[i][j];
for(int a = 0; a<n ; a++)
{
if(a >= i && a <= j)
counter+= 1-arr[a];
else
counter+= arr[a];
}
dp[i][j] = counter;
solve(i, j+1,0);
solve(i+1, j+1,0);
}
int main()
{
memset(dp, -1, sizeof dp);
memset(arr,0,sizeof arr);
int maxi=-1;
cin >> n;
for (int i=0 ; i<n ; i++)
cin >> arr[i];
solve(0,0,0);
for(int i=0 ; i<n; i++)
for(int j=0 ; j<n ; j++)
maxi=max(maxi,dp[i][j]);
cout << maxi << endl;
return 0;
}
|
fc414ef2820d22ca6b54ded8d254f62f9d5a33fa | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/Windows-classic-samples/Samples/Win7Samples/dataaccess/oledb/omniprov/source/msomniprovrs.cpp | 1ee87e41d5bc6c0f6bd40bef58745c2ee5696701 | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 13,175 | cpp | msomniprovrs.cpp | // Start of file MSOmniProvRS.cpp
// File: MSOmniProvRS.cpp
//
// This file contains the implementation for the CMSOmniProvRowset and CMSOmniProvCommand
//
// The following functions have been customized or added for the provider to function:
//
// CMSOmniProvCommand :: Execute - Executes the command...
// CMSOmniProvCommand :: GetColumnsInfo - Returns the column metadata requested by the consumer...
// CMSOmniProvRowset :: Execute - Parses the SQL query, executes it and builds the initial rowset...
// CMSOmniProvRowset :: GetColumnInfo - Returns the column metadata requested by the consumer builds reading the schema '.sxt' file...
// CMSOmniProvRowset :: CreateColInfo - Creates all of the column information and stores it in the rowset...
// CMSOmniProvRowset :: AllocateProxyBuffers - Causes the proxy buffers to be allocated for each of the CRow objects...
// CMSOmniProvRowset :: GetSchemaInfo - Returns the column metadata about the rowset...
// CMSOmniProvRowset :: CheckTable - Finds if the table in the Query exists or not...
// CMSOmniProvRowset :: GetDataSource - Retrieves the file name including the path to the schema '.sxt' file...
//
#include "stdafx.h"
#include "TheProvider.h" // Contains the definitions for the interfaces
#include "MSOmniProvRS.h" // Command and rowset header file
#include <comdef.h> // For _bstr_t
// CMSOmniProvCommand
// CMSOmniProvCommand :: Execute
// Executes the command...
HRESULT CMSOmniProvCommand::Execute(IUnknown * pUnkOuter, REFIID riid, DBPARAMS * pParams,
DBROWCOUNT * pcRowsAffected, IUnknown ** ppRowset)
{
CMSOmniProvRowset* pRowset;
return CreateRowset(pUnkOuter, riid, pParams, pcRowsAffected, ppRowset, pRowset);
}
// CMSOmniProvCommand :: GetColumnsInfo
// Returns the column metadata requested by the consumer...
ATLCOLUMNINFO* CMSOmniProvCommand::GetColumnInfo(CMSOmniProvCommand* pv, DBORDINAL* pcInfo)
{
return NULL;
}
// CMSOmniProvRowset
// CMSOmniProvRowset::Execute
// 1. Parse the SQL query,
// 2. Execute the query, and
// 3. Build the initial rowset
HRESULT CMSOmniProvRowset::Execute(DBPARAMS * pParams, DBROWCOUNT* pcRowsAffected)
{
USES_CONVERSION;
CMSOmniProvRowset* pT = (CMSOmniProvRowset*) this;
CMSOmniProvRowset::ObjectLock cab((CMSOmniProvRowset*) this);
HRESULT hr;
_bstr_t m_bstrFileName;
if ( FAILED(hr=pT->GetDataSource(m_bstrFileName)) )
return hr;
// Check the property value whether read/ updatabiliy property is set or not...
_variant_t varUpd;
GetPropValue(&DBPROPSET_ROWSET,DBPROP_UPDATABILITY, &varUpd);
if ( 0 != varUpd.iVal )
{
// 1. a) Build the file's Schema m_prgColInfo from the '.sxt' file,
// b) Open the file '.txt', and
// c) Fill the m_DBFile.m_Rows structure
// Open in exclusive mode
if (!m_DBFile.Open((LPCTSTR) m_bstrFileName,true))
return DB_E_NOTABLE;
if (!m_DBFile.FillRowArray())
return E_FAIL;
}
else // Open in non-exclusive mode
{
if (!m_DBFile.Open((LPCTSTR) m_bstrFileName,false))
return DB_E_NOTABLE;
if (!m_DBFile.FillRowArray())
return E_FAIL;
}
// Validate Command
// 2. PARSE the SQL Query here (Only SELECT * FROM <Table_Name> is supported)
TCHAR sep[] = " ";
_bstr_t bstrSQL(pT->m_strCommandText);
LPTSTR pchNextToken = NULL;
TCHAR * token = _tcstok_s((TCHAR*) bstrSQL, (TCHAR*) sep, &pchNextToken);
if (!CheckTable((TCHAR*) token))
{
// The Rowset was created using the ICommand::Execute( )...
// Only "SELECT * FROM Table_Name" Queries are supported
if(_tcsicmp(token,TEXT("select")) != 0)
{
ATLTRACE2(atlTraceDBProvider,0,(const TCHAR*) (_bstr_t("Query: '")+ bstrSQL + _bstr_t("' is not a valid Query\n")));
return DB_E_ERRORSINCOMMAND;
}
ATLTRACE2(atlTraceDBProvider,0,(const TCHAR*) (_bstr_t("\tIt is a valid '")+_bstr_t(token) + _bstr_t("' Query\n")));
TCHAR szTblNm[MAX_TABLE_NAME_SIZE];
while (token != NULL)
{
_tcscpy_s(szTblNm, _countof(szTblNm), token);
token= _tcstok_s(NULL,(TCHAR*) sep, &pchNextToken);
}
if (!CheckTable((TCHAR*) szTblNm))
return DB_E_NOTABLE;
}
// Allocate proxy buffers based on the schema information
// Each CRow contains proxy buffer that the data is trasnferred to in the native
// format. This information then needs to be copied out to the file in character format
// on SetData() calls.
CreateColInfo();
AllocateProxyBuffers();
if (pcRowsAffected != NULL)
*pcRowsAffected = m_DBFile.m_Rows.GetCount();
return S_OK;
}
// CMSOmniProvRowset :: GetColumnInfo
// Overriding GetColumnInfo as we will be deriving the column information
// from the schema '.sxt' file
ATLCOLUMNINFO* CMSOmniProvRowset::GetColumnInfo(CMSOmniProvRowset* pv, DBORDINAL* pNumCols)
{
ATLASSERT(pv!=NULL);
ATLASSERT(pNumCols!=NULL);
return pv->GetSchemaInfo(pNumCols);
}
// CMSOmniProvRowset :: CreateColInfo
// This function creates all of the column information and stores it in the rowset.
// It currently uses all of the columns of the table
void CMSOmniProvRowset::CreateColInfo()
{
// check if bookmarks are set
bool bUseBookmarks = false;
CComVariant varBookmarks;
HRESULT hrLocal = GetPropValue(&DBPROPSET_ROWSET, DBPROP_BOOKMARKS, &varBookmarks);
bUseBookmarks = (hrLocal == S_OK && varBookmarks.boolVal == VARIANT_TRUE);
// get column info from the .INI file
DBORDINAL ulNumCols;
ATLCOLUMNINFO * prgColInfo = m_DBFile.GetSchemaInfo(&ulNumCols);
// Need to add bookmark column info?
if (bUseBookmarks)
{
// create new set of column information which includes bookmarks
ATLCOLUMNINFO * prgColInfoNew;
prgColInfoNew = new ATLCOLUMNINFO[ulNumCols+1];
// set bindings for the bookmark
memset(&prgColInfoNew[0], 0, sizeof(ATLCOLUMNINFO));
prgColInfoNew[0].cbOffset = 0;
prgColInfoNew[0].iOrdinal = 0;
prgColInfoNew[0].columnid.eKind = DBKIND_NAME;
prgColInfoNew[0].columnid.uGuid.guid = GUID_NULL;
prgColInfoNew[0].columnid.uName.pwszName = OLESTR("Bookmark");
prgColInfoNew[0].pwszName = OLESTR("Bookmark");
prgColInfoNew[0].wType = DBTYPE_I4;
prgColInfoNew[0].ulColumnSize = 4;
prgColInfoNew[0].dwFlags = DBCOLUMNFLAGS_ISBOOKMARK;
// copy the old information into the new
for (DBORDINAL i = 1; i <= ulNumCols; i++)
{
prgColInfoNew[i] = prgColInfo[i-1];
prgColInfoNew[i].cbOffset +=4; //adjust space for bookmark
}
ulNumCols++;
prgColInfo = prgColInfoNew;
}
// store column info in the rowset object
SetSchemaInfo(prgColInfo, ulNumCols);
// 2.0
// Release the temporary prgColInfo
delete [] prgColInfo;
}
// CMSOmniProvRowset :: AllocateProxyBuffers
// Causes the proxy buffers to be allocated for each of the CRow objects
// which represents one row of the file.
void CMSOmniProvRowset::AllocateProxyBuffers()
{
CAtlArray<CRow *> * pRows = &m_DBFile.m_Rows;
size_t nSize = pRows->GetCount();
for (size_t i = 0; i < nSize; i++)
{
(*pRows)[i]->AllocProxyBuffer(m_prgColInfo, m_cCols);
}
}
// CMSOmniProvRowset :: GetSchemaInfo
// Returns the column metadata about the rowset...
ATLCOLUMNINFO * CMSOmniProvRowset::GetSchemaInfo(DBORDINAL * pNumCols)
{
// Allocate the column information only once as the functions we are returning the
// data from don't free.
*pNumCols = m_cCols;
return m_prgColInfo;
}
// CMSOmniProvRowset :: CheckTable
// Finds if the table in the Query exists or not...
// 2.0
// Code to recognize table name enclosed in [ ]...
BOOL CMSOmniProvRowset::CheckTable(TCHAR* szTblNm)
{
CMSOmniProvRowset* pT = (CMSOmniProvRowset*) this;
if(szTblNm[0] == '[')
{
size_t iLenBuff = 0;
iLenBuff = _tcslen(szTblNm);
TCHAR *szTmpBuff= (TCHAR *) malloc(sizeof(TCHAR) *iLenBuff );
_tcsncpy_s(szTmpBuff, iLenBuff, szTblNm + 1,iLenBuff -2);
if (!_tcscmp(pT->m_DBFile.m_szTblNm, szTmpBuff))
{
free(szTmpBuff);
return true;
}
else
free(szTmpBuff);
}
if (!_tcscmp(pT->m_DBFile.m_szTblNm, szTblNm))
return true;
else
return false;
}
//CMSOmniProvRowset :: GetDataSource
// Retrieves the file name including the path to the schema '.sxt' file...
HRESULT CMSOmniProvRowset::GetDataSource(_bstr_t &m_bstrLoc)
{
CMSOmniProvRowset* pT = (CMSOmniProvRowset*) this;
CMSOmniProvRowset::ObjectLock cab((CMSOmniProvRowset*) this);
CComPtr<IDBCreateCommand> spSession = NULL;
CComPtr<IRowset> spRowset = NULL;
HRESULT hr = pT->GetSite(IID_IDBCreateCommand, (void**) &spSession);
if (SUCCEEDED(hr)) // The Rowset was created from an IOpenRowset::OpenRowset( )...
{
// Get to DBPROP_INIT_DATASOURCE property
CComPtr<IDBCreateSession> spInit;
CComPtr<IObjectWithSite> spCreator2 = NULL;
if (FAILED(hr = spSession->QueryInterface(IID_IObjectWithSite,(void**) &spCreator2)))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IObjectWithSite from ICommand...\n");
return E_FAIL;
}
if (FAILED(hr = spCreator2->GetSite(IID_IDBCreateSession,(void**) &spInit)))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IDBCreateSession from ICommand...\n");
return E_FAIL;
}
// Initialize the property variables
ULONG cPropertyIDSets =1;
DBPROPIDSET rgPropertyIDSets[1];
ULONG cPropertySets;
DBPROPSET * prgPropertySets;
DBPROPID rgPropId[1];
rgPropId[0] = DBPROP_INIT_DATASOURCE;
rgPropertyIDSets[0].rgPropertyIDs = rgPropId;
rgPropertyIDSets[0].cPropertyIDs = 1;
rgPropertyIDSets[0].guidPropertySet = DBPROPSET_DBINIT;
CComPtr<IDBProperties> spProperties = NULL;
hr = spInit->QueryInterface(IID_IDBProperties,(void**) &spProperties);
if(FAILED(hr))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IDBCreateSession'ss IDBProperties...\n");
return hr;
}
spProperties->GetProperties(cPropertyIDSets, rgPropertyIDSets,&cPropertySets, &prgPropertySets) ;
m_bstrLoc = _bstr_t(prgPropertySets->rgProperties[0].vValue);
}
else // The Rowset was created from ICommand::Execute( )
{
CComPtr<ICommand> spCommand=NULL;
hr = pT->GetSite(IID_ICommand,(void**) &spCommand);
if(FAILED(hr))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the ICommand of the Rowset...\n");
return E_FAIL;
}
CComPtr<IObjectWithSite> spCreator = NULL;
if (FAILED(hr = spCommand->QueryInterface(IID_IObjectWithSite,(void**) &spCreator)))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IObjectWithSite from ICommand...\n");
return E_FAIL;
}
if (FAILED(hr = spCreator->GetSite(IID_IDBCreateCommand,(void**) &spSession)))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IDBCreateSession from ICommand...\n");
return E_FAIL;
}
CComPtr<IDBCreateSession> spInit;
CComPtr<IObjectWithSite> spCreator2 = NULL;
if (FAILED(hr = spSession->QueryInterface(IID_IObjectWithSite,(void**) &spCreator2)))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IObjectWithSite from ICommand...\n");
return E_FAIL;
}
if (FAILED(hr = spCreator2->GetSite(IID_IDBCreateSession,(void**) &spInit)))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IDBCreateSession from ICommand...\n");
return E_FAIL;
}
// Get to DBPROP_INIT_DATASOURCE
ULONG cPropertyIDSets =1;
DBPROPIDSET rgPropertyIDSets[1];
ULONG cPropertySets;
DBPROPSET * prgPropertySets;
DBPROPID rgPropId[1];
rgPropId[0] = DBPROP_INIT_DATASOURCE;
rgPropertyIDSets[0].rgPropertyIDs = rgPropId;
rgPropertyIDSets[0].cPropertyIDs = 1;
rgPropertyIDSets[0].guidPropertySet = DBPROPSET_DBINIT;
CComPtr<IDBProperties> spProperties = NULL;
hr = spInit->QueryInterface(IID_IDBProperties,(void**) &spProperties);
if(FAILED(hr))
{
ATLTRACE2(atlTraceDBProvider,0,"FATAL ERROR: Cannot get to the IDBCreateSession'ss IDBProperties...\n");
return hr;
}
spProperties->GetProperties(cPropertyIDSets, rgPropertyIDSets,&cPropertySets, &prgPropertySets) ;
m_bstrLoc = _bstr_t(prgPropertySets->rgProperties[0].vValue);
}
return hr;
}
// End of file MSOmniProvRS.cpp
|
7bcd420a51d49491bad07c058fe2f159872347e5 | 0591f9f3fd0fb37598331efa245180a30acac69b | /framework/NetMessage.h | c386b796dbeb812bc87c034239a05f8685665be9 | [] | no_license | maocl1983/mkx | f30cab94db7f27cff0f209c42c946de8d9a733d4 | e94ef136636c4c1f40e0c0d0911043c7167140a5 | refs/heads/master | 2021-02-01T13:28:32.627575 | 2020-03-14T09:02:13 | 2020-03-14T09:02:13 | 243,522,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,015 | h | NetMessage.h | #pragma once
#include <stdint.h>
#include <functional>
class LoopQueue;
class Server;
class IOEventHandler;
class UserEvent;
class BufferEvent;
struct conn_info;
class NetMessage {
public:
NetMessage(Server* server);
~NetMessage();
IOEventHandler* GetIOEventHandler();
int Bind(int protocol, const char* ip, int port);
int Connect(int protocol, const char* ip, int port);
int SendMsg(int fd, uint64_t remote, const char* msg, int msglen);
public:
int OpenConn(int fd, BufferEvent* bev, int protocol, int listenfd = -1);
struct conn_info* GetConn(int fd);
int CloseConn(int fd);
int RecvMsg(int fd, uint64_t remote);
int OnConnClosed(int fd);
void OnSendMsgEvent();
void SendQueNoti();
private:
int recvTcpMsg(struct conn_info* conn);
int recvUdpMsg(struct conn_info* conn, uint64_t remote);
private:
Server* server_;
UserEvent* msgEvent_;
struct conn_info* conns_;
char* recvBuffer_;
LoopQueue* sendQue_;
LoopQueue* recvQue_;
int maxfds_;
uint32_t maxMsglen_;
};
|
a2fc95b07750563df34b95d224f61e55b0d964ac | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /HLTrigger/Muon/plugins/HLTMuonPFIsoFilter.cc | c3018fdba12f894b24e7cb1eeb1185b6791b3ebe | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | C++ | false | false | 7,765 | cc | HLTMuonPFIsoFilter.cc | /** \class HLTMuonPFIsoFilter
*
* See header file for documentation
*
*
*/
#include "HLTMuonPFIsoFilter.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
#include "DataFormats/HLTReco/interface/TriggerRefsCollections.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidate.h"
#include "DataFormats/RecoCandidate/interface/RecoChargedCandidateFwd.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include <iostream>
//
// constructors and destructor
//
HLTMuonPFIsoFilter::HLTMuonPFIsoFilter(const edm::ParameterSet& iConfig) : HLTFilter(iConfig),
candTag_ (iConfig.getParameter< edm::InputTag > ("CandTag") ),
previousCandTag_ (iConfig.getParameter< edm::InputTag > ("PreviousCandTag")),
depTag_ (iConfig.getParameter< std::vector< edm::InputTag > >("DepTag" ) ),
depToken_(),
rhoTag_ (iConfig.getParameter< edm::InputTag >("RhoTag" ) ),
maxIso_ (iConfig.getParameter<double>("MaxIso" ) ),
min_N_ (iConfig.getParameter<int> ("MinN")),
onlyCharged_ (iConfig.getParameter<bool> ("onlyCharged")),
doRho_ (iConfig.getParameter<bool> ("applyRhoCorrection")),
effArea_ (iConfig.getParameter<double> ("EffectiveArea"))
{
depToken_.reserve(depTag_.size());
for (auto const& t: depTag_) {
depToken_.push_back(consumes<edm::ValueMap<double> >(t));
}
candToken_ = consumes<reco::RecoChargedCandidateCollection>(candTag_);
previousCandToken_ = consumes<trigger::TriggerFilterObjectWithRefs>(previousCandTag_);
if (doRho_) rhoToken_ = consumes<double>(rhoTag_);
LogDebug("HLTMuonPFIsoFilter").log( [this](auto& l) {
l << " candTag : " << candTag_.encode()
<< "\n" ;
for (unsigned int i=0;i!=depTag_.size();++i) {
l<<" PFIsoTag["<<i<<"] : "<<depTag_[i].encode()<<" \n";
}
l << " MinN : " << min_N_;
});
produces<edm::ValueMap<bool> >();
}
HLTMuonPFIsoFilter::~HLTMuonPFIsoFilter() = default;
//
// member functions
//
void
HLTMuonPFIsoFilter::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
edm::ParameterSetDescription desc;
makeHLTFilterDescription(desc);
desc.add<edm::InputTag>("CandTag",edm::InputTag("hltL3MuonCandidates"));
desc.add<edm::InputTag>("PreviousCandTag",edm::InputTag(""));
std::vector<edm::InputTag> depTag(1,edm::InputTag("hltMuPFIsoValueCharged03"));
desc.add<std::vector<edm::InputTag> >("DepTag",depTag);
desc.add<edm::InputTag>("RhoTag",edm::InputTag("hltFixedGridRhoFastjetAllCaloForMuonsPF"));
desc.add<double>("MaxIso",1.);
desc.add<int>("MinN",1);
desc.add<bool>("onlyCharged",false);
desc.add<bool>("applyRhoCorrection",true);
desc.add<double>("EffectiveArea",1.);
descriptions.add("hltMuonPFIsoFilter", desc);
}
// ------------ method called to produce the data ------------
bool
HLTMuonPFIsoFilter::hltFilter(edm::Event& iEvent, const edm::EventSetup& iSetup, trigger::TriggerFilterObjectWithRefs & filterproduct) const
{
using namespace std;
using namespace edm;
using namespace trigger;
using namespace reco;
// All HLT filters must create and fill an HLT filter object,
// recording any reconstructed physics objects satisfying (or not)
// this HLT filter, and place it in the Event.
//the decision map
std::unique_ptr<edm::ValueMap<bool> > PFisoMap( new edm::ValueMap<bool> ());
// get hold of trks
Handle<RecoChargedCandidateCollection> mucands;
if (saveTags()) filterproduct.addCollectionTag(candTag_);
iEvent.getByToken (candToken_,mucands);
Handle<TriggerFilterObjectWithRefs> previousLevelCands;
iEvent.getByToken (previousCandToken_,previousLevelCands);
vector<RecoChargedCandidateRef> vcands;
previousLevelCands->getObjects(TriggerMuon,vcands);
//get hold of energy deposition
unsigned int nDep=depTag_.size();
std::vector< Handle<edm::ValueMap<double> > > depMap(nDep);
//get hold of rho of the event
double Rho = 0;
if (doRho_){
Handle <double> RhoCorr;
iEvent.getByToken(rhoToken_, RhoCorr);
Rho = *RhoCorr.product();
}
for (unsigned int i=0;i!=nDep;++i) iEvent.getByToken (depToken_[i],depMap[i]);
// look at all mucands, check cuts and add to filter object
int nIsolatedMu = 0;
unsigned int nMu=mucands->size();
std::vector<bool> isos(nMu, false);
unsigned int iMu=0;
for (; iMu<nMu; iMu++)
{
double MuonDeposits = 0;
RecoChargedCandidateRef candref(mucands,iMu);
LogDebug("HLTMuonPFIsoFilter") << "candref isNonnull " << candref.isNonnull();
//did this candidate triggered at previous stage.
if (!triggerdByPreviousLevel(candref,vcands)) continue;
//reference to the track
TrackRef tk = candref->get<TrackRef>();
LogDebug("HLTMuonPFIsoFilter") << "tk isNonNull " << tk.isNonnull();
//get the deposits and evaluate relIso if only the charged component is considered
if (onlyCharged_){
for(unsigned int iDep=0;iDep!=nDep;++iDep)
{
const edm::ValueMap<double> ::value_type & muonDeposit = (*(depMap[iDep]))[candref];
LogDebug("HLTMuonPFIsoFilter") << " Muon with q*pt= " << tk->charge()*tk->pt()
<< " (" << candref->charge()*candref->pt() << ") "
<< ", eta= " << tk->eta() << " (" << candref->eta() << ") "
<< "; has deposit["<<iDep<<"]: " << muonDeposit;
std::size_t foundCharged = depTag_[iDep].label().find("Charged");
if (foundCharged!=std::string::npos) MuonDeposits += muonDeposit;
}
MuonDeposits = MuonDeposits/tk->pt();
}
else {
//get all the deposits
for(unsigned int iDep=0;iDep!=nDep;++iDep)
{
const edm::ValueMap<double> ::value_type & muonDeposit = (*(depMap[iDep]))[candref];
LogDebug("HLTMuonPFIsoFilter") << " Muon with q*pt= " << tk->charge()*tk->pt()
<< " (" << candref->charge()*candref->pt() << ") "
<< ", eta= " << tk->eta() << " (" << candref->eta() << ") "
<< "; has deposit["<<iDep<<"]: " << muonDeposit;
MuonDeposits += muonDeposit;
}
//apply rho correction
if (doRho_) MuonDeposits -= effArea_*Rho;
MuonDeposits = MuonDeposits/tk->pt();
}
//get the selection
if (MuonDeposits < maxIso_) isos[iMu] = true;
LogDebug("HLTMuonPFIsoFilter") << " Muon with q*pt= " << tk->charge()*tk->pt() << ", eta= " << tk->eta()
<< "; "<<(isos[iMu]?"Is an isolated muon.":"Is NOT an isolated muon.");
if (!isos[iMu]) continue;
nIsolatedMu++;
filterproduct.addObject(TriggerMuon,candref);
}//for iMu
// filter decision
const bool accept (nIsolatedMu >= min_N_);
//put the decision map
if (nMu!=0)
{
edm::ValueMap<bool> ::Filler isoFiller(*PFisoMap);
isoFiller.insert(mucands, isos.begin(), isos.end());
isoFiller.fill();
}
iEvent.put(std::move(PFisoMap));
LogDebug("HLTMuonPFIsoFilter") << " >>>>> Result of HLTMuonPFIsoFilter is " << accept << ", number of muons passing isolation cuts= " << nIsolatedMu;
return accept;
}
bool HLTMuonPFIsoFilter::triggerdByPreviousLevel(const reco::RecoChargedCandidateRef & candref, const std::vector<reco::RecoChargedCandidateRef>& vcands){
unsigned int i=0;
unsigned int i_max=vcands.size();
for (;i!=i_max;++i){
if (candref == vcands[i]) return true;
}
return false;
}
// declare this class as a framework plugin
#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(HLTMuonPFIsoFilter);
|
e85a369910a4e43c90430e23625779d5f943f4b7 | e091f5999bf1346a21f782377108779c6c6eace2 | /Project_PS/Private/GemSwapper.cpp | 59c7abe8a4138e799b74e138ffb56f60a1b983a9 | [] | no_license | koe22kr/Project_PS | 9258f563c9a8d6c88d83206f2019a581beb947cd | 6381ec04a8e3be401ea1159855345f9c65693d7b | refs/heads/master | 2022-11-14T21:23:29.621972 | 2020-07-01T04:35:11 | 2020-07-01T04:35:11 | 272,081,444 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 866 | cpp | GemSwapper.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "GemSwapper.h"
#include "Project_PS.h"
GemSwapper::GemSwapper()
{
mCounter = 0;
}
GemSwapper::~GemSwapper()
{
}
void GemSwapper::Put(AGem* gem)
{
if (mCounter>1)
{
KLOG(Warning, TEXT("%s"), TEXT("GemSwapper->m_Counter>1"));
return;
}
mSwapper[mCounter] = gem;
//mCounter = mCounter ^ 1;
if (mCounter==0)
{
mCounter = 1;
}
}
FVector2D GemSwapper::Swap()
{
//GemColor tempcolor = mSwapper[0]->GetColor();
FVector temppos = mSwapper[0]->GetPos();
FVector temppos2 = mSwapper[0]->GetPos();
uint32 tempidx = mSwapper[0]->GetIdx();
uint32 tempidx2 = mSwapper[1]->GetIdx();
mSwapper[0]->SetGem(temppos2, tempidx2);
mSwapper[1]->SetGem(temppos, tempidx);
return FVector2D(tempidx, tempidx2);
}
|
262ada0be5bb1b8253a38280e79d75b02a1ac9a3 | 99afada48a86906f29daf9734ce96ed97630751f | /include/main/utility/ID.hpp | c98a082c42bafb9ce79ca41e227eece21ae6b818 | [] | no_license | FPStudies/CityTrafficSimulation | d6230dd5d1d34e35ed49ec47fb7ec0a47c7b55aa | 5a945acc1eb6b9427787b3612d9b2c772081cb73 | refs/heads/master | 2022-11-11T14:49:03.723404 | 2020-06-10T21:26:29 | 2020-06-10T21:26:29 | 248,755,855 | 0 | 0 | null | 2020-06-09T18:46:45 | 2020-03-20T12:58:08 | C++ | UTF-8 | C++ | false | false | 2,588 | hpp | ID.hpp | /*
* ID.hpp
*
* Author: Kordowski Mateusz
*/
#ifndef TRAFFIC_SIM_ID_HPP
#define TRAFFIC_SIM_ID_HPP
#include <limits.h>
#include <memory>
namespace Utils{
/**
* @brief Template of the ID class. Every other ID use this.
*
* @tparam T
*/
template<typename T>
class ID{
private:
enum class State{
INVALID,
VALID
};
State state_;
int my_ID_;
static int global_ID_;
ID(State state) // always State::Valid
: state_(State::VALID), my_ID_(global_ID_++)
{}
public:
ID() // Always State::Invalid
: state_(State::INVALID), my_ID_(INT_MIN)
{}
virtual ~ID() {}
ID(const ID& other)
: state_(other.state_), my_ID_(other.my_ID_)
{}
/**
* @brief Create a new ScreenID in this object.
*
* @details It will have a unique identifier.
* This can be performed only if this object has an invalid identifier.
* Valid identifiers will not be affected by this.
*
* @return true If identifier was valid and operation was not performed.
* @return false Otherwise.
*/
bool createNew(){
if(state_ == State::INVALID){
my_ID_ = global_ID_++;
state_ = State::VALID;
return false;
}
return true;
}
/**
* @brief Creates a new valid identifier.
*
* @return ScreenID A new identifier.
*/
static ID newID(){
return ID(State::VALID);
}
bool isValid() const{
if(state_ == State::VALID)
return true;
return false;
}
friend bool operator==(const ID& s1, const ID& s2){
return s1.my_ID_ == s2.my_ID_;
}
friend bool operator!=(const ID& s1, const ID& s2){
return !(s1 == s2);
}
friend bool operator<(const ID& s1, const ID& s2){
return s1.my_ID_ < s2.my_ID_;
}
/**
* @brief Return an intiger that identifies this object.
*
* @return int
*/
int operator* () const{
return my_ID_;
}
struct less{
bool operator() (const ID& s1, const ID& s2) const{
return s1.my_ID_ < s2.my_ID_;
}
};
};
template<typename T>
int ID<T>::global_ID_ = 0;
}
#endif
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.