CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
BStorageArray Struct Reference

#include <Grid3D.h>

Public Member Functions

 BStorageArray ()
 
 BStorageArray (float x, float y, float z)
 
float const & operator[] (int i) const
 

Public Attributes

float v [3]
 

Detailed Description

Definition at line 19 of file Grid3D.h.

Constructor & Destructor Documentation

◆ BStorageArray() [1/2]

BStorageArray::BStorageArray ( )
inline

Definition at line 20 of file Grid3D.h.

20 {}

◆ BStorageArray() [2/2]

BStorageArray::BStorageArray ( float  x,
float  y,
float  z 
)
inline

Definition at line 21 of file Grid3D.h.

References x, y, and z.

21 : v{x, y, z} {}
float v[3]
Definition: Grid3D.h:25

Member Function Documentation

◆ operator[]()

float const& BStorageArray::operator[] ( int  i) const
inline

Definition at line 23 of file Grid3D.h.

References mps_fire::i, and v.

23 { return v[i]; }
float v[3]
Definition: Grid3D.h:25

Member Data Documentation

◆ v

float BStorageArray::v[3]

Definition at line 25 of file Grid3D.h.

Referenced by operator[]().