本文整理汇总了C++中dev函数的典型用法代码示例。如果您正苦于以下问题:C++ dev函数的具体用法?C++ dev怎么用?C++ dev使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dev函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dev
void parser_t::netdev_hint()
{
pstring dev(get_identifier());
require_token(m_tok_comma);
pstring hint(get_identifier());
m_setup.register_param(dev + ".HINT_" + hint, 1);
require_token(m_tok_param_right);
}
示例2:
void dynamicLagrangian<BasicTurbulenceModel>::correctNut
(
const tmp<volTensorField>& gradU
)
{
this->nut_ = (flm_/fmm_)*sqr(this->delta())*mag(dev(symm(gradU)));
this->nut_.correctBoundaryConditions();
}
示例3:
tmp<fvVectorMatrix> realizableKE_Veh::divDevReff(volVectorField& U) const
{
return
(
- fvm::laplacian(nuEff(), U)
- fvc::div(nuEff()*dev(T(fvc::grad(U))))
);
}
示例4: close
void close(BOOST_IOS::openmode which)
{
if (which == BOOST_IOS::in && (flags_ & f_input_closed) == 0) {
flags_ |= f_input_closed;
iostreams::close(dev(), BOOST_IOS::in);
}
if (which == BOOST_IOS::out && (flags_ & f_output_closed) == 0) {
flags_ |= f_output_closed;
detail::execute_all(
detail::flush_buffer(buf_.second(), dev(), can_write::value),
detail::call_close(dev(), BOOST_IOS::out),
detail::call_reset(dev_),
detail::call_reset(buf_.first()),
detail::call_reset(buf_.second())
);
}
}
示例5:
tmp<fvVectorMatrix> LienCubicKE::divDevReff(volVectorField& U) const
{
return
(
fvc::div(nonlinearStress_)
- fvm::laplacian(nuEff(), U)
- fvc::div(nuEff()*dev(T(fvc::grad(U))))
);
}
示例6:
tmp<fvVectorMatrix> SpalartAllmaras::divDevReff(volVectorField& U) const
{
return
(
- fvm::laplacian(nuEff(), U)
- fvc::div(nuEff()*dev(T(fvc::grad(U))))
);
}
示例7: printf
void AudioDevice::printAll(){
for(int i=0; i<numDevices(); i++){
printf("[%2d] ", i);
AudioDevice dev(i);
dev.print();
//print(i);
}
}
示例8:
tmp<fvVectorMatrix> kOmega::divDevReff(volVectorField& U) const
{
return
(
- fvm::laplacian(nuEff(), U)
- fvc::div(nuEff()*dev(fvc::grad(U)().T()))
);
}
示例9: prep
static inline void prep(adc_t line)
{
if (dev(line) == ADC0) {
bit_set32(&SIM->SCGC6, SIM_SCGC6_ADC0_SHIFT);
}
#ifdef ADC1
else if (dev(line) == ADC1) {
#if defined(SIM_SCGC3_ADC1_SHIFT)
bit_set32(&SIM->SCGC3, SIM_SCGC3_ADC1_SHIFT);
#elif defined(SIM_SCGC6_ADC1_SHIFT)
bit_set32(&SIM->SCGC6, SIM_SCGC6_ADC1_SHIFT);
#else
#error ADC1 clock gate is not known!
#endif
}
#endif /* ADC1 */
mutex_lock(&locks[dev_num(line)]);
}
示例10: main
int main(int argc, char **argv) {
Palette palette;
palette.Shade16();
Device dev(WinX, WinY, &palette);
MainApp app(dev);
return dev.MainLoop();
}
示例11: dev
IPHeader::PrintOptType::PrintOptType(const char *ptr,const char *lim)
{
StrParse dev(ptr,lim);
ParseInbound(dev,inbound);
ParseExtra(dev,extra);
if( !dev.finish() ) setDefault();
}
示例12: returnNormalizedLine
ofPolyline returnNormalizedLine (ofPolyline & input){
ofPolyline output = input;
vector< float > x;
vector< float > y;
for (int i = 0; i < output.getVertices().size(); i++){
x.push_back(output[i].x);
y.push_back(output[i].y);
}
float sumx, meanx, varx, devx, skewx, kurtx;
float sumy, meany, vary, devy, skewy, kurty;
computeStats(x.begin( ), x.end( ), sumx, meanx, varx, devx, skewx, kurtx);
computeStats(y.begin( ), y.end( ), sumy, meany, vary, devy, skewy, kurty);
float stdDev = sqrt(devx*devx + devy*devy);
ofPoint midPt (meanx, meany);
ofPoint dev (stdDev, stdDev);
ofMatrix4x4 mat;
mat.makeTranslationMatrix(-midPt.x, -midPt.y, 0);
ofMatrix4x4 mat2;
mat2.makeScaleMatrix(100.0/dev.x, 100.0/dev.y, 1.0);
// mat.scale(100,100,1.0);
//mat *= mat2;
for (int i = 0; i < output.getVertices().size(); i++){
ofPoint input = output[i];
output[i] -= midPt;
output[i] /= dev;
output[i]*= 100.0;
// cout << output[i] << endl;
// cout << "--> " << input << endl;
// cout << input * mat * mat2 << endl;
// cout << "--> " << (input * mat * mat2) * mat2.getInverse() * mat.getInverse() << endl;
}
// ofRectangle boxOrig = input.getBoundingBox();
// ofRectangle box = boxOrig;
// ofRectangle outputBox(-100,-100,200,200);
// box.scaleTo(outputBox);
//
// for (int i = 0; i < output.getVertices().size(); i++){
// output.getVertices()[i].x = ofMap( output.getVertices()[i].x, boxOrig.position.x, boxOrig.position.x + boxOrig.width,
// box.position.x, box.x + box.width);
// output.getVertices()[i].y = ofMap( output.getVertices()[i].y, boxOrig.position.y, boxOrig.position.y + boxOrig.height,
// box.position.x, box.y + box.height);
//
// }
return output;
}
示例13: dev
istream* Hdfs::open(std::string path)
{
if (exists(path) == false)
{
throw ios_base::failure("File not found.");
}
HdfsDevice dev(_host, _port, path);
return new boost::iostreams::stream<HdfsDevice>(dev);
}
示例14: rCmu
tmp<volScalarField> realizableKE::rCmu
(
const volTensorField& gradU
)
{
volScalarField S2 = 2*magSqr(dev(symm(gradU)));
volScalarField magS = sqrt(S2);
return rCmu(gradU, S2, magS);
}
示例15: dev
dimensionedTensor dev(const dimensionedTensor& dt)
{
return dimensionedTensor
(
"dev("+dt.name()+')',
dt.dimensions(),
dev(dt.value())
);
}