?? gacodevaluesbuffer.h
字號:
#ifndef __GA_CODE_VALUE_BUFFER_H__
#define __GA_CODE_VALUE_BUFFER_H__
#include "..\..\ExportImport.h"
#include "..\..\CallConvention.h"
namespace Chromosome
{
namespace Representation
{
// Buffer for manupulation over parts of chromosom's code
class GaCodeValuesBuffer
{
private:
// Memory buffer
void* _buffer;
// Size of buffer in bytes
int _size;
// Current position in buffer
int _currentPosition;
public:
// Allocates memory for the buffer
DLL_EXPORT
GaCodeValuesBuffer(int size);
// Free memory used by buffer
DLL_EXPORT
~GaCodeValuesBuffer();
// Moves current position
DLL_EXPORT
void GACALL Move(int delta);
// Returns pointer to start of the buffer
DLL_EXPORT
void* GACALL GetBuffer() const;
// Return size of the buffer in bytes
DLL_EXPORT
int GACALL GetSize() const;
// Returns current position
DLL_EXPORT
int GACALL GetPosition() const;
};// END CLASS DEFINITION GaCodeValuesBuffer
} // Representation
} // Chromosome
#endif // __GA_CODE_VALUE_BUFFER_H__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -