A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::Supervisor Class Reference

#include <Supervisor.h>

+ Inheritance diagram for pdb::Supervisor:
+ Collaboration diagram for pdb::Supervisor:

Public Member Functions

ENABLE_DEEP_COPY ~Supervisor ()
 
 Supervisor ()
 
 Supervisor (std::string name, int age)
 
 Supervisor (std::string name, int age, std::string department, double salary)
 
Handle< Employee > & getEmp (int who)
 
int getNumEmployees ()
 
String getDepartment ()
 
Handle< StringgetName ()
 
void addEmp (Handle< Employee > &addMe)
 
Handle< EmployeegetSteve ()
 
Handle< Employee > & getMe ()
 
void print () final
 
std::string toSchemaString (std::string format) override
 
std::string toValueString (std::string format) override
 
std::vector< std::string > getSupportedFormats () override
 
- Public Member Functions inherited from pdb::Object
void setVTablePtr (void *setToMe)
 
void * getVTablePtr ()
 
virtual void setUpAndCopyFrom (void *target, void *source) const
 
virtual void deleteObject (void *deleteMe)
 
virtual size_t getSize (void *ofMe)
 

Public Attributes

Handle< Employeeme
 
Vector< Handle< Employee > > myGuys
 

Additional Inherited Members

- Static Public Member Functions inherited from pdb::Object
static void * operator new (size_t sz, const std::nothrow_t &tag)
 
static void * operator new (size_t sz)
 
static void operator delete (void *me)
 
static void * operator new (std::size_t count, void *ptr)
 

Detailed Description

Definition at line 33 of file Supervisor.h.

Constructor & Destructor Documentation

ENABLE_DEEP_COPY pdb::Supervisor::~Supervisor ( )
inline

Definition at line 41 of file Supervisor.h.

pdb::Supervisor::Supervisor ( )
inline

Definition at line 42 of file Supervisor.h.

pdb::Supervisor::Supervisor ( std::string  name,
int  age 
)
inline

Definition at line 44 of file Supervisor.h.

pdb::Supervisor::Supervisor ( std::string  name,
int  age,
std::string  department,
double  salary 
)
inline

Definition at line 48 of file Supervisor.h.

Member Function Documentation

void pdb::Supervisor::addEmp ( Handle< Employee > &  addMe)
inline

Definition at line 68 of file Supervisor.h.

String pdb::Supervisor::getDepartment ( )
inline

Definition at line 60 of file Supervisor.h.

Handle<Employee>& pdb::Supervisor::getEmp ( int  who)
inline

Definition at line 52 of file Supervisor.h.

Handle<Employee>& pdb::Supervisor::getMe ( )
inline

Definition at line 80 of file Supervisor.h.

Handle<String> pdb::Supervisor::getName ( )
inline

Definition at line 64 of file Supervisor.h.

+ Here is the caller graph for this function:

int pdb::Supervisor::getNumEmployees ( )
inline

Definition at line 56 of file Supervisor.h.

Handle<Employee> pdb::Supervisor::getSteve ( )
inline

Definition at line 72 of file Supervisor.h.

+ Here is the call graph for this function:

std::vector<std::string> pdb::Supervisor::getSupportedFormats ( )
inlineoverridevirtual

Implements ExportableObject.

Definition at line 143 of file Supervisor.h.

void pdb::Supervisor::print ( )
inlinefinalvirtual

Implements ExportableObject.

Definition at line 84 of file Supervisor.h.

std::string pdb::Supervisor::toSchemaString ( std::string  format)
inlineoverridevirtual

Implements ExportableObject.

Definition at line 100 of file Supervisor.h.

std::string pdb::Supervisor::toValueString ( std::string  format)
inlineoverridevirtual

Implements ExportableObject.

Definition at line 104 of file Supervisor.h.

+ Here is the call graph for this function:

Member Data Documentation

Handle<Employee> pdb::Supervisor::me

Definition at line 36 of file Supervisor.h.

Vector<Handle<Employee> > pdb::Supervisor::myGuys

Definition at line 37 of file Supervisor.h.


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