Leviathan  0.8.0.0
Leviathan game engine
Leviathan::NamedVariableBlock Class Reference

DataBlock variant with name. More...

#include <DataBlock.h>

+ Inheritance diagram for Leviathan::NamedVariableBlock:

Public Member Functions

template<class DBRType >
 NamedVariableBlock (DataBlock< DBRType > *block, const std::string &name)
 
 NamedVariableBlock (DataBlockAll *block, const std::string &name)
 
 NamedVariableBlock (const int &var, const std::string &name)
 
 NamedVariableBlock (const bool &var, bool isactuallybooltype, const std::string &name)
 
 NamedVariableBlock (const std::string &var, const std::string &name)
 
 NamedVariableBlock (const std::wstring &var, const std::string &name)
 
 NamedVariableBlock (const double &var, const std::string &name)
 
 NamedVariableBlock (const float &var, const std::string &name)
 
 NamedVariableBlock (const char &var, const std::string &name)
 
 NamedVariableBlock (void *var, const std::string &name)
 
std::string GetName () const
 
bool CompareName (const std::string &str) const
 
std::string & GetNameChangeable ()
 
- Public Member Functions inherited from Leviathan::VariableBlock
 VariableBlock ()
 Default empty constructor, block has no value of any kind. More...
 
template<class DBRType >
 VariableBlock (DataBlock< DBRType > *block)
 
 VariableBlock (const int &var)
 
 VariableBlock (const bool &var, bool isactuallybooltype)
 
 VariableBlock (const std::string &var)
 
 VariableBlock (const std::wstring &var)
 
 VariableBlock (const double &var)
 
 VariableBlock (const float &var)
 
 VariableBlock (const char &var)
 
 VariableBlock (void *var)
 
DLLEXPORT VariableBlock (sf::Packet &packet)
 Constructs from a packet. More...
 
DLLEXPORT void AddDataToPacket (sf::Packet &packet) const
 Stores data to a packet. More...
 
 VariableBlock (const VariableBlock &arg)
 
DLLEXPORT VariableBlock (const std::string &valuetoparse, std::map< std::string, std::shared_ptr< VariableBlock >> *predefined)
 
 VariableBlock (DataBlockAll *block)
 
virtual ~VariableBlock ()
 
DataBlockAllGetBlock ()
 
const DataBlockAllGetBlockConst () const
 
bool IsValid () const
 
VariableBlockoperator= (VariableBlock *arg)
 
template<class DBlockTP >
VariableBlockoperator= (DataBlock< DBlockTP > *arg)
 
VariableBlockoperator= (const VariableBlock &arg)
 
bool operator== (const VariableBlock &other) const
 comparison operator More...
 
bool operator!= (const VariableBlock &other) const
 Opposite of the comparison operator. More...
 
template<class ConvertT >
 operator ConvertT () const
 
template<class ConvertT >
 operator ConvertT * ()
 
template<class ConvertT >
bool IsConversionAllowedNonPtr () const
 
template<class ConvertT >
bool IsConversionAllowedPtr () const
 
template<class ConvertT >
bool ConvertAndAssingToVariable (ConvertT &var) const
 
template<class ConvertT >
ConvertT ConvertAndReturnVariable () const
 

Protected Attributes

std::string Name
 
- Protected Attributes inherited from Leviathan::VariableBlock
DataBlockAllBlockData = nullptr
 

Detailed Description

DataBlock variant with name.

Definition at line 762 of file DataBlock.h.

Constructor & Destructor Documentation

◆ NamedVariableBlock() [1/10]

template<class DBRType >
Leviathan::NamedVariableBlock::NamedVariableBlock ( DataBlock< DBRType > *  block,
const std::string &  name 
)
inline

Definition at line 766 of file DataBlock.h.

766  :
767  VariableBlock(block), Name(name)
768  {
769 
770  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [2/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( DataBlockAll block,
const std::string &  name 
)
inline

Definition at line 773 of file DataBlock.h.

773  :
774  VariableBlock(block), Name(name)
775  {
776 
777  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [3/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const int &  var,
const std::string &  name 
)
inline

Definition at line 780 of file DataBlock.h.

780  :
781  VariableBlock(var), Name(name)
782  {
783  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [4/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const bool &  var,
bool  isactuallybooltype,
const std::string &  name 
)
inline

Definition at line 784 of file DataBlock.h.

784  :
785  VariableBlock(var, isactuallybooltype), Name(name)
786  {
787  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [5/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const std::string &  var,
const std::string &  name 
)
inline

Definition at line 788 of file DataBlock.h.

788  :
789  VariableBlock(var), Name(name)
790  {
791  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [6/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const std::wstring &  var,
const std::string &  name 
)
inline

Definition at line 792 of file DataBlock.h.

792  :
793  VariableBlock(var), Name(name)
794  {
795  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [7/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const double &  var,
const std::string &  name 
)
inline

Definition at line 796 of file DataBlock.h.

796  :
797  VariableBlock(var), Name(name)
798  {
799  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [8/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const float &  var,
const std::string &  name 
)
inline

Definition at line 800 of file DataBlock.h.

800  :
801  VariableBlock(var), Name(name)
802  {
803  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [9/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( const char &  var,
const std::string &  name 
)
inline

Definition at line 804 of file DataBlock.h.

804  :
805  VariableBlock(var), Name(name)
806  {
807  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

◆ NamedVariableBlock() [10/10]

Leviathan::NamedVariableBlock::NamedVariableBlock ( void *  var,
const std::string &  name 
)
inline

Definition at line 808 of file DataBlock.h.

808  :
809  VariableBlock(var), Name(name)
810  {
811  }
VariableBlock()
Default empty constructor, block has no value of any kind.
Definition: DataBlock.h:429

Member Function Documentation

◆ CompareName()

bool Leviathan::NamedVariableBlock::CompareName ( const std::string &  str) const
inline

Definition at line 817 of file DataBlock.h.

817  {
818 
819  return Name == str;
820  }

◆ GetName()

std::string Leviathan::NamedVariableBlock::GetName ( ) const
inline

Definition at line 813 of file DataBlock.h.

813  {
814  return Name;
815  }

◆ GetNameChangeable()

std::string& Leviathan::NamedVariableBlock::GetNameChangeable ( )
inline

Definition at line 822 of file DataBlock.h.

822  {
823 
824  return Name;
825  }

Member Data Documentation

◆ Name

std::string Leviathan::NamedVariableBlock::Name
protected

Definition at line 829 of file DataBlock.h.


The documentation for this class was generated from the following file: