taco-db  0.1.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
taco::SysTable_Cast Class Reference

SysTable_Cast is an in-memory cached record in the system catalog SysTable_Cast. More...

#include <catalog/systables/Cast.h>

Public Member Functions

constexpr Oid castfuncid () const
 Returns the function id of the cast. More...
 
constexpr Oid castoprtypid () const
 Returns the type id of the operand. More...
 
constexpr Oid castrettypid () const
 Returns the type id of the return value. More...
 
constexpr bool castisimplicit () const
 Returns whether this cast can be implicit. More...
 

Static Public Member Functions

static constexpr FieldId castfuncid_colid ()
 
static constexpr FieldId castoprtypid_colid ()
 
static constexpr FieldId castrettypid_colid ()
 
static constexpr FieldId castisimplicit_colid ()
 

Private Member Functions

 SysTable_Cast (Oid castfuncid, Oid castoprtypid, Oid castrettypid, bool castisimplicit)
 
std::vector< DatumGetDatumVector () const
 Returns all the fields as a datum vector. More...
 
 SysTable_Cast (const SysTable_Cast &)=default
 
SysTable_Castoperator= (const SysTable_Cast &)=default
 

Static Private Member Functions

static SysTable_CastCreate (const std::vector< Datum > &)
 Creates a new SysTable_Cast with a data vector read from some record payload. More...
 

Private Attributes

Oid m_castfuncid
 
Oid m_castoprtypid
 
Oid m_castrettypid
 
bool m_castisimplicit
 

Friends

class BootstrapCatCache
 
class CatCacheInternalAccess
 

Detailed Description

SysTable_Cast is an in-memory cached record in the system catalog SysTable_Cast.

Constructor & Destructor Documentation

◆ SysTable_Cast() [1/2]

taco::SysTable_Cast::SysTable_Cast ( Oid  castfuncid,
Oid  castoprtypid,
Oid  castrettypid,
bool  castisimplicit 
)
inlineprivate

◆ SysTable_Cast() [2/2]

taco::SysTable_Cast::SysTable_Cast ( const SysTable_Cast )
privatedefault

Member Function Documentation

◆ castfuncid()

constexpr Oid taco::SysTable_Cast::castfuncid ( ) const
inlineconstexpr

Returns the function id of the cast.

◆ castfuncid_colid()

static constexpr FieldId taco::SysTable_Cast::castfuncid_colid ( )
inlinestaticconstexpr

◆ castisimplicit()

constexpr bool taco::SysTable_Cast::castisimplicit ( ) const
inlineconstexpr

Returns whether this cast can be implicit.

◆ castisimplicit_colid()

static constexpr FieldId taco::SysTable_Cast::castisimplicit_colid ( )
inlinestaticconstexpr

◆ castoprtypid()

constexpr Oid taco::SysTable_Cast::castoprtypid ( ) const
inlineconstexpr

Returns the type id of the operand.

◆ castoprtypid_colid()

static constexpr FieldId taco::SysTable_Cast::castoprtypid_colid ( )
inlinestaticconstexpr

◆ castrettypid()

constexpr Oid taco::SysTable_Cast::castrettypid ( ) const
inlineconstexpr

Returns the type id of the return value.

◆ castrettypid_colid()

static constexpr FieldId taco::SysTable_Cast::castrettypid_colid ( )
inlinestaticconstexpr

◆ Create()

SysTable_Cast * taco::SysTable_Cast::Create ( const std::vector< Datum > &  data)
staticprivate

Creates a new SysTable_Cast with a data vector read from some record payload.

This function is private and only accessible to the catalog cache implementation.

◆ GetDatumVector()

std::vector< Datum > taco::SysTable_Cast::GetDatumVector ( ) const
private

Returns all the fields as a datum vector.

Note that the entry itself must be kept alive when the datum vector is accessed, as we may return references without copying the underlying data. This function is private and only accessible to the catalog cache implementation.

◆ operator=()

SysTable_Cast& taco::SysTable_Cast::operator= ( const SysTable_Cast )
privatedefault

Friends And Related Function Documentation

◆ BootstrapCatCache

friend class BootstrapCatCache
friend

◆ CatCacheInternalAccess

friend class CatCacheInternalAccess
friend

Member Data Documentation

◆ m_castfuncid

Oid taco::SysTable_Cast::m_castfuncid
private

◆ m_castisimplicit

bool taco::SysTable_Cast::m_castisimplicit
private

◆ m_castoprtypid

Oid taco::SysTable_Cast::m_castoprtypid
private

◆ m_castrettypid

Oid taco::SysTable_Cast::m_castrettypid
private

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