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
<?php | |
/** | |
* Defines a default cache implementation. | |
* | |
* This is Drupal's default cache implementation. It uses the database to store | |
* cached data. Each cache bin corresponds to a database table by the same name. | |
*/ | |
class DrupalDatabaseCache implements DrupalCacheInterface { | |
protected $bin; |
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
<?php | |
/** | |
* Defines an interface for cache implementations. | |
* | |
* All cache implementations have to implement this interface. | |
* DrupalDatabaseCache provides the default implementation, which can be | |
* consulted as an example. | |
* | |
* To make Drupal use your implementation for a certain cache bin, you have to | |
* set a variable with the name of the cache bin as its key and the name of |
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
class NoVirtual { | |
int a; | |
public: | |
void x() const {} | |
int i() const { return 1; } | |
}; | |
class OneVirtual { | |
int a; | |
public: |
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
// The base class | |
class Base { | |
private: | |
int someNumber_; | |
public: | |
void printNumber(){ | |
cout << "Printing number from base " << someNumber_ << endl; | |
} | |
virtual void func1(){ | |
cout << "printing from base::func1" << endl; |
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
// The base class | |
class Base { | |
private: | |
int someNumber_; | |
public: | |
void printNumber(){ | |
cout << "Printing number from base " << someNumber_ << endl; | |
} | |
virtual void func1(){ | |
cout << "printing from base::func1" << endl; |
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
#include "opencv2/highgui/highgui.hpp" | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int truncate(int value) | |
{ | |
if(value<0) | |
value = 0; |
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
// Class forward declarations | |
class atomisticMoleculeCloud; | |
/*---------------------------------------------------------------------------*\ | |
Class atomisticMolecule Declaration | |
\*---------------------------------------------------------------------------*/ | |
class atomisticMolecule | |
: | |
public Particle<atomisticMolecule> |
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
class polyMoleculeCloud; | |
/*---------------------------------------------------------------------------*\ | |
Class polyMolecule Declaration | |
\*---------------------------------------------------------------------------*/ | |
class polyMolecule | |
: | |
public particle | |
{ |
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
ERROR: Missing required ELF section '.note.link' from the program | |
'/fs4/ecse0202/ecse0202/ksb12101/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64Gcc48DPOpt/bin/mdPolyFoam'. | |
Load the correct 'perftools' module and rebuild the program. |
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
# HG changeset patch | |
# Parent 24bbab269ff59737611bb1ffb71a2ae62e99a3e6 | |
diff --git a/applications/solvers/combustion/chemFoam/Make/options b/applications/solvers/combustion/chemFoam/Make/options | |
--- a/applications/solvers/combustion/chemFoam/Make/options | |
+++ b/applications/solvers/combustion/chemFoam/Make/options | |
@@ -12,6 +12,7 @@ | |
EXE_LIBS = \ | |
-lfiniteVolume \ |
NewerOlder