Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::TypeManager Class Reference
Collaboration diagram for duckdb::TypeManager:

Public Member Functions

 TypeManager (DBConfig &config)
CastFunctionSet & GetCastFunctions ()
 Get the CastFunctionSet from the TypeManager.
LogicalType ParseLogicalType (const string &type_str, ClientContext &context) const
 Try to parse and bind a logical type from a string. Throws an exception if the type could not be parsed.

Static Public Member Functions

static TypeManager & Get (DatabaseInstance &db)
 Get the TypeManager from the DatabaseInstance.
static TypeManager & Get (ClientContext &context)

Private Attributes

LogicalType(* parse_function )(const string &, ClientContext &)
 This has to be a function pointer to avoid the compiler inlining the implementation and blowing up the binary size of extensions that include type_manager.hpp.
unique_ptr< CastFunctionSet > cast_functions
 The set of cast functions.

Constructor & Destructor Documentation

◆ TypeManager()

duckdb::TypeManager::TypeManager ( DBConfig & config)
explicit
130114 {
130115 cast_functions = make_uniq<CastFunctionSet>(config_p);
130116 parse_function = ParseLogicalTypeInternal;
130117}
unique_ptr< CastFunctionSet > cast_functions
The set of cast functions.
Definition duckdb.hpp:39927
LogicalType(* parse_function)(const string &, ClientContext &)
This has to be a function pointer to avoid the compiler inlining the implementation and blowing up th...
Definition duckdb.hpp:39924

◆ ~TypeManager()

duckdb::TypeManager::~TypeManager ( )
130119 {
130120}

Member Function Documentation

◆ GetCastFunctions()

CastFunctionSet & duckdb::TypeManager::GetCastFunctions ( )

Get the CastFunctionSet from the TypeManager.

130016 {
130017 return *cast_functions;
130018}

◆ ParseLogicalType()

LogicalType duckdb::TypeManager::ParseLogicalType ( const string & type_str,
ClientContext & context ) const

Try to parse and bind a logical type from a string. Throws an exception if the type could not be parsed.

130102 {
130103 return parse_function(type_str, context);
130104}

◆ Get() [1/2]

TypeManager & duckdb::TypeManager::Get ( DatabaseInstance & db)
static

Get the TypeManager from the DatabaseInstance.

130106 {
130107 return DBConfig::GetConfig(db).GetTypeManager();
130108}

◆ Get() [2/2]

TypeManager & duckdb::TypeManager::Get ( ClientContext & context)
static
130110 {
130111 return DBConfig::GetConfig(context).GetTypeManager();
130112}

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