Created
April 21, 2016 18:34
-
-
Save mitchute/ce93add24282ee493f6e0dcd51e98c73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// header.hh | |
class cell // cell class | |
{ | |
public: | |
double x_loc; | |
}; | |
class BaseDomainClass | |
{ | |
public: | |
// BaseDomain Members | |
std::vector< std::unique_ptr< cell >> cellVect; | |
// BaseDomain functions | |
std::unique_ptr< cell > getCell( int i, int j ); | |
}; | |
// In main.cc | |
std::unique_ptr< cell >BaseDomainClass::getCell( | |
int const i, | |
int const j | |
) | |
{ | |
int vectorIndex = i + j; | |
return cellVect[ vectorIndex ]; | |
} |
Myoldmopar
commented
Apr 21, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment