Covalent Bond  0.0.1-alpha
'covalent bond' is a data middle office. As a 2022-2023 Fall SWE final project.
Public Member Functions | Private Attributes | List of all members
cbVirtualSharedTable Class Reference

cbVirtualSharedTable is a container of shared memory. More...

#include <cbTable.hpp>

Collaboration diagram for cbVirtualSharedTable:
Collaboration graph
[legend]

Public Member Functions

 ~cbVirtualSharedTable ()
 Destroy the cb Virtual Shared Table object. More...
 
 cbVirtualSharedTable ()=default
 Construct a new cb Virtual Shared Table object. More...
 
 cbVirtualSharedTable (protocol::MySQLResultCursor *cursor)
 Construct a new cb Virtual Shared Table object Only loop one result set. More...
 
const cbShape< 2 > getShape () const
 Get the Shape object. More...
 
cbMySQLCellatPtr (int32_t i, int32_t j)
 
cbMySQLCellatPtrRef (int32_t i, int32_t j)
 
cbMySQLField ** getInfo ()
 Get the Info object. More...
 
int32_t getFiledCount ()
 Get the Filed Count object. More...
 
void resetShape (cbShape< 2 > &shape)
 
void resetFieldInfo (int32_t fieldCount, cbMySQLField **info)
 

Private Attributes

int32_t m_fieldCount = 0
 
cbShape< 2 > m_shape
 
cbMySQLField ** m_info = nullptr
 
std::vector< std::vector< cbMySQLCell > > m_data
 

Detailed Description

cbVirtualSharedTable is a container of shared memory.

Definition at line 518 of file cbTable.hpp.

Constructor & Destructor Documentation

◆ ~cbVirtualSharedTable()

cbVirtualSharedTable::~cbVirtualSharedTable ( )

Destroy the cb Virtual Shared Table object.

Definition at line 48 of file cbTable.cpp.

References m_fieldCount, and m_info.

◆ cbVirtualSharedTable() [1/2]

cbVirtualSharedTable::cbVirtualSharedTable ( )
default

Construct a new cb Virtual Shared Table object.

◆ cbVirtualSharedTable() [2/2]

cbVirtualSharedTable::cbVirtualSharedTable ( protocol::MySQLResultCursor *  cursor)

Construct a new cb Virtual Shared Table object Only loop one result set.

Parameters
cursor

! no copy api

! with copy.

Definition at line 53 of file cbTable.cpp.

References m_data, m_fieldCount, m_info, m_shape, and resetShape().

Here is the call graph for this function:

Member Function Documentation

◆ atPtr()

cbMySQLCell * cbVirtualSharedTable::atPtr ( int32_t  i,
int32_t  j 
)
Parameters
i
j
Returns
cbMySQLCell*

Definition at line 77 of file cbTable.cpp.

References m_data.

Referenced by mapShared2Virtual().

Here is the caller graph for this function:

◆ atPtrRef()

cbMySQLCell * cbVirtualSharedTable::atPtrRef ( int32_t  i,
int32_t  j 
)
Parameters
i
j
Returns
cbMySQLCell*

Definition at line 79 of file cbTable.cpp.

References m_data.

◆ getFiledCount()

int32_t cbVirtualSharedTable::getFiledCount ( )
inline

Get the Filed Count object.

Returns
int32_t

Definition at line 576 of file cbTable.hpp.

References m_fieldCount.

◆ getInfo()

cbMySQLField** cbVirtualSharedTable::getInfo ( )
inline

Get the Info object.

Returns
cbMySQLField**

Definition at line 569 of file cbTable.hpp.

References m_info.

Referenced by mapShared2Virtual().

Here is the caller graph for this function:

◆ getShape()

const cbShape<2> cbVirtualSharedTable::getShape ( ) const
inline

Get the Shape object.

Returns
const cbShape<2>

Definition at line 544 of file cbTable.hpp.

References m_shape.

Referenced by mapShared2Virtual().

Here is the caller graph for this function:

◆ resetFieldInfo()

void cbVirtualSharedTable::resetFieldInfo ( int32_t  fieldCount,
cbMySQLField **  info 
)
Parameters
fieldCount
info

Definition at line 91 of file cbTable.cpp.

References m_fieldCount, and m_info.

◆ resetShape()

void cbVirtualSharedTable::resetShape ( cbShape< 2 > &  shape)
Parameters
shape

Definition at line 81 of file cbTable.cpp.

References m_data, and m_shape.

Referenced by cbVirtualSharedTable().

Here is the caller graph for this function:

Member Data Documentation

◆ m_data

std::vector<std::vector<cbMySQLCell> > cbVirtualSharedTable::m_data
private

Definition at line 597 of file cbTable.hpp.

Referenced by atPtr(), atPtrRef(), cbVirtualSharedTable(), and resetShape().

◆ m_fieldCount

int32_t cbVirtualSharedTable::m_fieldCount = 0
private

◆ m_info

cbMySQLField** cbVirtualSharedTable::m_info = nullptr
private

Definition at line 596 of file cbTable.hpp.

Referenced by cbVirtualSharedTable(), getInfo(), resetFieldInfo(), and ~cbVirtualSharedTable().

◆ m_shape

cbShape<2> cbVirtualSharedTable::m_shape
private

Definition at line 595 of file cbTable.hpp.

Referenced by cbVirtualSharedTable(), getShape(), and resetShape().


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