Questions tagged [virtual]

An extensible or simulated artifact

Virtual memory: Giving the appearance of having greater system memory by paging infrequently used portions of memory out to disk, and reloading them from disk only when referenced.

Virtual hard disk: A software simulation of a hard disk.

Virtual method: a function that can be overridden in descendant classes to extend or replace existing functionality. This is a key aspect of polymorphism.

Virtual reality: A simulation of experience achieved by coordinating visual, audible, and tactile stimuli

3155 questions
1
vote
1 answer

Calculate number of virtual pages per process

I have 64 KB of pages, 4GB physical memory, and a 64-bit machine. I learnt that 64-bit machines result in 256TB of virtual memory. If I had to calculate the # of virtual pages per process, would that simply be: Total virtual memory/ Page size =…
robinhood91
  • 1,641
  • 3
  • 20
  • 36
1
vote
1 answer

Is it safe to access a SQLite virtual table from UI thread on android?

I need to maintain a data table of string columns with full text searching enabled for all the columns. I understand from Android documentation: A virtual table behaves similarly to a SQLite table, but reads and writes to an object in memory via…
Chebyr
  • 2,171
  • 1
  • 20
  • 30
1
vote
0 answers

Overriding virtual function in grandchild class

class A { public: virtual void foo() { cout << "A" << endl; } }; class B : public A { public: void foo() { cout << "B" << endl; } }; class C : public B { public: void foo() { cout << "C" << endl; } }; int main() { A *a = new…
1
vote
1 answer

Virtual keyboard Popup not working on a derived textbox in wpf

I have a derived class called NumericTextBox that is derived from TextBox.This has all the validationsf for the data to be numeric. Now, i have a popup attached to this textbox in my window. the popup is a virtual keyboard. this lets the user input…
user435849
  • 11
  • 1
1
vote
2 answers

When would I need a Virtual Function?

I understand that a Virtual Function is a function that can be redefined in classes that inherit that function. Yet, I do not understand why I would need a Virtual Function. Can someone explain me or show me cases where I would need Virtual…
xjose97x
  • 41
  • 2
  • 4
1
vote
3 answers

Should one declare functions virtual at all levels of inheritance or only at the ancestor level?

Should one mark explicitly as virtual all overrides in descendant classes at any level? class Base { // ... protected: virtual void to_be_derived() const; // First level to introduce this virtual function }; class LevelOne : public Base { //…
green diod
  • 1,399
  • 3
  • 14
  • 29
1
vote
0 answers

Virtual reality using opengl es 2.0

I'm trying to write an VR application using opengl on Android. I know it's very simple with Google Cardboard SDK but I want to do it entirely in OpenGL to understand clearly. Now, I have something that I am not clearly. I hope someone help me to…
Robotic Vn
  • 437
  • 2
  • 7
  • 20
1
vote
1 answer

Virtual method of a specialized class

Is it possible to define a virtual method on a class which has been specialized? For example template struct Interface { T_DataType data; ... }; struct NewInterface : Interface { virtual int return_data() = 0; ... } struct…
eaponte
  • 409
  • 5
  • 15
1
vote
1 answer

Find highest free virtual memory with POSIX API

As the title says, how can I find a free block to be allocated at the highest virtual address using only the POSIX API?
moatPylon
  • 2,103
  • 1
  • 15
  • 22
1
vote
0 answers

How to implement BoxCryptor like Virtual Drive

I am trying to replicate BoxCryptor behaviour for our company needs. What it does : Createas a new network drive X:\ which behaves like a decrypted model of the choosen to encrypt folder. Each file created in this drive is encrypted and stored in…
v00d00
  • 3,215
  • 3
  • 32
  • 43
1
vote
5 answers

Can the virtual function be found at runtime without calling?

I have a base class Base, with many derived classes (eg. Derived1, Derived2). Base has a pure virtual function fn, which is called many times using a Base pointer. Every time the function is called, I need to do some extra logging and related stuff.…
SPMP
  • 1,181
  • 1
  • 9
  • 24
1
vote
4 answers

using a method declared pure virtual in derived classes

I am working with a code and I saw something odd, a method of a class "MyClass" let's call it X() : virtual void X() = 0; So MyClass is an abstract class and in MyClass.cpp X() has a proper implementation... In derived classes of MyClass, this…
Aminos
  • 754
  • 1
  • 20
  • 40
1
vote
0 answers

"link" to 360 video - Virtual Reality?

I'm wondering if there is anyway to achieve something like that . .. If i'm shooting a short movie in 360 degres - to read with an oculus or an iphone by a google cardboard. Is there a way to add some 'link' inside the video. let's imagine that…
tibewww
  • 593
  • 4
  • 11
  • 32
1
vote
2 answers

How to disable virtual home button in any activity?

I need to disable 3 virtual buttons in any activity in my app. I disabled back button and multitask button somehow but I cannot dsable home button. I tried onAttachedToWindow() style answers on stackoverflow but they didn't work for me. I don't want…
kagkar
  • 469
  • 5
  • 15
1
vote
1 answer

1 VM be connected to 2 VNETS?

Sorry if this is vague...I am currently looking at an AZURE architecture design that has 3 VNETs. I am looking for each VNET pass through a firewall server. Basically I am trying to figure out if 1VM can be part of 3 Virtual networks without…
1 2 3
99
100