Chi-Tech
ChiObject.cc
Go to the documentation of this file.
1
#include "
ChiObject.h
"
2
3
/**Returns the input parameters.*/
4
chi::InputParameters
ChiObject::GetInputParameters
()
5
{
6
return
{};
// Returns an empty block
7
}
8
9
ChiObject::ChiObject
() {}
10
11
ChiObject::ChiObject
(
const
chi::InputParameters
&) {}
12
13
void
ChiObject::SetStackID
(
size_t
stack_id) {
stack_id_
= stack_id; }
14
15
size_t
ChiObject::StackID
()
const
{
return
stack_id_
; }
16
17
void
ChiObject::PushOntoStack
(std::shared_ptr<ChiObject>& new_object)
18
{
19
Chi::object_stack
.push_back(new_object);
20
new_object->SetStackID(
Chi::object_stack
.size() - 1);
21
}
ChiObject.h
Chi::object_stack
static std::vector< ChiObjectPtr > object_stack
Definition:
chi_runtime.h:96
ChiObject::PushOntoStack
virtual void PushOntoStack(std::shared_ptr< ChiObject > &new_object)
Definition:
ChiObject.cc:17
ChiObject::ChiObject
ChiObject()
Definition:
ChiObject.cc:9
ChiObject::SetStackID
void SetStackID(size_t stack_id)
Definition:
ChiObject.cc:13
ChiObject::StackID
size_t StackID() const
Definition:
ChiObject.cc:15
ChiObject::stack_id_
size_t stack_id_
Definition:
ChiObject.h:10
ChiObject::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
ChiObject.cc:4
chi::InputParameters
Definition:
input_parameters.h:23
framework
ChiObject.cc
Generated by
1.9.3