SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TPrimitive Class Reference

Primitive class: Wrapper around primitive data types. More...

#include <table.h>

Collaboration diagram for TPrimitive:

Public Member Functions

 TPrimitive ()
 
 TPrimitive (const TInt &Val)
 
 TPrimitive (const TFlt &Val)
 
 TPrimitive (const TStr &Val)
 
 TPrimitive (const TPrimitive &Prim)
 
TInt GetInt () const
 
TFlt GetFlt () const
 
TStr GetStr () const
 
TAttrType GetType () const
 

Private Attributes

TInt IntVal
 
TFlt FltVal
 
TStr StrVal
 
TAttrType AttrType
 

Detailed Description

Primitive class: Wrapper around primitive data types.

Definition at line 211 of file table.h.

Constructor & Destructor Documentation

TPrimitive::TPrimitive ( )
inline

Definition at line 219 of file table.h.

219 : IntVal(-1), FltVal(-1), StrVal(""), AttrType(atInt) {}
Definition: gbase.h:23
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TInt Val)
inline

Definition at line 220 of file table.h.

220 : IntVal(Val), FltVal(-1), StrVal(""), AttrType(atInt) {}
Definition: gbase.h:23
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TFlt Val)
inline

Definition at line 221 of file table.h.

221 : IntVal(-1), FltVal(Val), StrVal(""), AttrType(atFlt) {}
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
Definition: gbase.h:23
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TStr Val)
inline

Definition at line 222 of file table.h.

222 : IntVal(-1), FltVal(-1), StrVal(Val.CStr()), AttrType(atStr) {}
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
Definition: gbase.h:23
char * CStr()
Definition: dt.h:479
TAttrType AttrType
Definition: table.h:216
TPrimitive::TPrimitive ( const TPrimitive Prim)
inline

Definition at line 223 of file table.h.

223  : IntVal(Prim.IntVal), FltVal(Prim.FltVal),
224  StrVal(Prim.StrVal.CStr()), AttrType(Prim.AttrType) {}
TStr StrVal
Definition: table.h:215
TInt IntVal
Definition: table.h:213
TFlt FltVal
Definition: table.h:214
char * CStr()
Definition: dt.h:479
TAttrType AttrType
Definition: table.h:216

Member Function Documentation

TFlt TPrimitive::GetFlt ( ) const
inline

Definition at line 227 of file table.h.

References FltVal.

Referenced by TRowIterator::CompareAtomicConst(), and TRowIteratorWithRemove::CompareAtomicConst().

227 { return FltVal; }
TFlt FltVal
Definition: table.h:214

Here is the caller graph for this function:

TInt TPrimitive::GetInt ( ) const
inline

Definition at line 226 of file table.h.

References IntVal.

Referenced by TRowIterator::CompareAtomicConst(), and TRowIteratorWithRemove::CompareAtomicConst().

226 { return IntVal; }
TInt IntVal
Definition: table.h:213

Here is the caller graph for this function:

TStr TPrimitive::GetStr ( ) const
inline

Definition at line 228 of file table.h.

References StrVal.

Referenced by TRowIterator::CompareAtomicConst(), TRowIteratorWithRemove::CompareAtomicConst(), and TTable::SelectAtomicConst().

228 { return StrVal; }
TStr StrVal
Definition: table.h:215

Here is the caller graph for this function:

TAttrType TPrimitive::GetType ( ) const
inline

Definition at line 229 of file table.h.

References AttrType.

Referenced by TRowIterator::CompareAtomicConst(), TRowIteratorWithRemove::CompareAtomicConst(), and TTable::SelectAtomicConst().

229 { return AttrType; }
TAttrType AttrType
Definition: table.h:216

Here is the caller graph for this function:

Member Data Documentation

TAttrType TPrimitive::AttrType
private

Definition at line 216 of file table.h.

Referenced by GetType().

TFlt TPrimitive::FltVal
private

Definition at line 214 of file table.h.

Referenced by GetFlt().

TInt TPrimitive::IntVal
private

Definition at line 213 of file table.h.

Referenced by GetInt().

TStr TPrimitive::StrVal
private

Definition at line 215 of file table.h.

Referenced by GetStr().


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