Пример #1
0
template <class ObjType> void OpsRTree::Allocator<ObjType>::Initialize()
{
    // free up any previously allocated blocks of objects, and reinitialize
    // member variables

    UnInitialize();
    InitializeMembers(m_blockSize);

} // end: Initialize()
	/** Default constructor initializes class members and can optionally
	place the class into "Human Readable" mode, where the marker command
	is <, the marker parameter is =, and the marker end is > ASCII value.
	In addition, command lookup case sensitivity can be set.*/
	VCommandParseMap(	VBOOL bHumanReadable = VFALSE,
						VBOOL bCommandLookupCaseSensitive = VTRUE)
	{
		/* Initialize defaults.*/
		m_pszCommand = m_pszParameter =	NULL;
		m_bCommandLookupCaseSensitive =	bCommandLookupCaseSensitive;

		/* Initialize other members.*/
		InitializeMembers(VTRUE);

		if ( bHumanReadable )
			SetHumanReadable();
		else
		{
			m_nMarkerCommand =		MARKER_COMMAND;
			m_nMarkerParameter =	MARKER_PARAMETER;
			m_nMarkerEnd =			MARKER_END;
		}
	}
	/** Virtual destructor verifies internal object cleanup.*/
	virtual ~VCommandParseMap()
		{ InitializeMembers(VFALSE); }
Пример #4
0
template <class ObjType> OpsRTree::Allocator<ObjType>::Allocator(int blockSize)
{
    InitializeMembers(blockSize);

} // end: constructor
Пример #5
0
CRainDes::CRainDes(void)
{
	InitializeMembers();
}
ToggleCommand::ToggleCommand(Command* onCommand, Command* offCommand, bool isOn) : Command() {
	InitializeMembers(onCommand, offCommand, isOn);
}
ToggleCommand::ToggleCommand(Command* onCommand, Command* offCommand): Command() {
	InitializeMembers(onCommand, offCommand, true);
}