EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
StringCollapseVisitor Class Reference

#include "CachedObjectMgr.h"

Inheritance diagram for StringCollapseVisitor:
Collaboration diagram for StringCollapseVisitor:

Public Member Functions

bool VisitInteger (const PyInt *rep)
 primitive data visitors More...
 
bool VisitLong (const PyLong *rep)
 
bool VisitReal (const PyFloat *rep)
 
bool VisitBoolean (const PyBool *rep)
 
bool VisitNone (const PyNone *rep)
 
bool VisitBuffer (const PyBuffer *rep)
 
bool VisitString (const PyString *rep)
 
bool VisitWString (const PyWString *rep)
 
bool VisitToken (const PyToken *rep)
 
bool VisitDict (const PyDict *rep)
 
bool VisitObject (const PyObject *rep)
 Object type visitor. More...
 
bool VisitObjectEx (const PyObjectEx *rep)
 
bool VisitPackedRow (const PyPackedRow *rep)
 PackedRow type visitor. More...
 
bool VisitSubStruct (const PySubStruct *rep)
 wrapper types Visitor More...
 
bool VisitSubStream (const PySubStream *rep)
 
bool VisitChecksumedStream (const PyChecksumedStream *rep)
 
- Public Member Functions inherited from PyVisitor
virtual ~PyVisitor ()
 
virtual bool VisitTuple (const PyTuple *rep)
 the nested types Visitor More...
 
virtual bool VisitList (const PyList *rep)
 

Public Attributes

std::string result
 

Detailed Description

Definition at line 205 of file CachedObjectMgr.h.

Member Function Documentation

bool StringCollapseVisitor::VisitBoolean ( const PyBool rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 224 of file CachedObjectMgr.h.

224 { return false; }
bool StringCollapseVisitor::VisitBuffer ( const PyBuffer rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 226 of file CachedObjectMgr.h.

226 { return false; }
bool StringCollapseVisitor::VisitChecksumedStream ( const PyChecksumedStream rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 247 of file CachedObjectMgr.h.

247 { return false; }
bool StringCollapseVisitor::VisitDict ( const PyDict rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 238 of file CachedObjectMgr.h.

238 { return false; }
bool StringCollapseVisitor::VisitInteger ( const PyInt rep)
inlinevirtual

primitive data visitors

Reimplemented from PyVisitor.

Definition at line 211 of file CachedObjectMgr.h.

References PyInt::value().

212  {
213  if( !result.empty() )
214  result += ".";
215 
216  std::stringstream ss;
217  ss << rep->value();
218  result += ss.str();
219 
220  return true;
221  }
int32 value() const
Definition: PyRep.h:247

Here is the call graph for this function:

bool StringCollapseVisitor::VisitLong ( const PyLong rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 222 of file CachedObjectMgr.h.

222 { return false; }
bool StringCollapseVisitor::VisitNone ( const PyNone rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 225 of file CachedObjectMgr.h.

225 { return false; }
bool StringCollapseVisitor::VisitObject ( const PyObject rep)
inlinevirtual

Object type visitor.

Reimplemented from PyVisitor.

Definition at line 240 of file CachedObjectMgr.h.

240 { return false; }
bool StringCollapseVisitor::VisitObjectEx ( const PyObjectEx rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 241 of file CachedObjectMgr.h.

241 { return false; }
bool StringCollapseVisitor::VisitPackedRow ( const PyPackedRow rep)
inlinevirtual

PackedRow type visitor.

Reimplemented from PyVisitor.

Definition at line 243 of file CachedObjectMgr.h.

243 { return false; }
bool StringCollapseVisitor::VisitReal ( const PyFloat rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 223 of file CachedObjectMgr.h.

223 { return false; }
bool StringCollapseVisitor::VisitString ( const PyString rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 227 of file CachedObjectMgr.h.

References PyString::content().

228  {
229  if( !result.empty() )
230  result += ".";
231  result += rep->content();
232 
233  return true;
234  }
const std::string & content() const
Get the PyString content.
Definition: PyRep.h:458

Here is the call graph for this function:

bool StringCollapseVisitor::VisitSubStream ( const PySubStream rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 246 of file CachedObjectMgr.h.

246 { return false; }
bool StringCollapseVisitor::VisitSubStruct ( const PySubStruct rep)
inlinevirtual

wrapper types Visitor

Reimplemented from PyVisitor.

Definition at line 245 of file CachedObjectMgr.h.

245 { return false; }
bool StringCollapseVisitor::VisitToken ( const PyToken rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 236 of file CachedObjectMgr.h.

236 { return false; }
bool StringCollapseVisitor::VisitWString ( const PyWString rep)
inlinevirtual

Reimplemented from PyVisitor.

Definition at line 235 of file CachedObjectMgr.h.

235 { return false; }

Member Data Documentation

std::string StringCollapseVisitor::result

Definition at line 209 of file CachedObjectMgr.h.

Referenced by CachedObjectMgr::OIDToString().


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